Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
pdo session storage - how can you determine when session record was created and last modified?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
keymaster keymaster  
View profile  
 More options Jun 1 2012, 7:57 am
From: keymaster keymaster <ad...@optionosophy.com>
Date: Fri, 1 Jun 2012 04:57:10 -0700 (PDT)
Local: Fri, Jun 1 2012 7:57 am
Subject: pdo session storage - how can you determine when session record was created and last modified?

I'm storing sessions in the db using session.storage.pdo.

I want to be able to tell how old sessions are and which sessions have been
recently updated.

I thought the best way might be to set things up so the session records
have createdAt and modifiedAt fields which are updated accordingly?

Is that kind of thing possible in native symfony2?

If not, are there any known bundles which might help with this, or do I
need to implement a custom session handler?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
keymaster keymaster  
View profile  
 More options Jun 1 2012, 8:28 am
From: keymaster keymaster <ad...@optionosophy.com>
Date: Fri, 1 Jun 2012 05:28:02 -0700 (PDT)
Local: Fri, Jun 1 2012 8:28 am
Subject: Re: pdo session storage - how can you determine when session record was created and last modified?

Looking into it a bit...

pdoSessionStorage is managed by:
Symfony\Component\HttpFoundation\SessionStorage\PdoSessionStorage.

On every create and subsequent update, it updates the dbTimeCol (which for
most of us is session_time) with the unix timestamp time().

So, that provides a last modified time.

... still would like to know the datetime when the session record was
created, though...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »