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

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Well, 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

RKS’s picture

Thanks. 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.

rdeboer’s picture

Status: Fixed » Closed (works as designed)

Ok closing.
Rik