Closed (works as designed)
Project:
Session Cache API
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
23 Jul 2013 at 07:27 UTC
Updated:
24 Jul 2013 at 09:58 UTC
I've been using jquery session but not having any luck so I started looking to contrib modules to see if any can do what I'm looking for. Basically, what I'm looking to do is determine if a session is present and if so, perform some action. Can I determine this using your module?
Also, if the above is true, does your module provide a way to set an expiration for the session? Thanks.
Comments
Comment #1
rdeboerWell, yes. But it's for PHP not for jQuery/javascript.
The idea is to transparently provide alternatives for using PHP's global variable $_SESSION to store and retrieve data related to a user's session.
This is because the use of $_SESSION tends to stuff up caching engine/web accelerators like Varnish.
The alternatives storage mechanisms provided are: Drupal database, cookie and file.
I guess you could write into the cookie with this module and read via jQuery/javascript. And vice versa.
Yes, expiry of the session can be configured. See the module's configuration page.
Rik
Comment #2
RKS commentedThanks. Yeah, I know it would be for PHP but I think I can get it with *almost* the same js I'm using now. That should be just fine for my needs. Thanks again.
Comment #3
rdeboerOk closing.
Rik