ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Session lives less than login

April 12, 2011 12:31pm

Subscribe [3]
  • #1 / Apr 12, 2011 12:31pm

    Ñuño Martínez

    60 posts

    I’m creating an add-on module to be used in EE 2.1.0, and it uses the session identifier to keep track of some values.  I mean, I store the session identifier in the data base “to know if it’s available”. This way some data is only available to the current session. So you can’t access to some data if your session Id doesn’t match the one stored in the database.

    The problem is that sometimes the session identifier expires but “login” is still alive, even if I’m not using the “remember me” option.

    Is this an issue? Or may be I’m doing it wrong? Is it possible to know when the session identifier is modified to update it, or should I use another way to relation data with session?  I know I can use “flash data” or just serialize the data inside the session itself, but customer wants to save it to the data base…

  • #2 / Apr 13, 2011 6:23am

    John Henry Donovan

    12339 posts

    Ñuño Martínez,

    Make sure you are on the very latest version and build as there was a bug fix for what you describe regarding the session expiring and the login still being alive

    EE 2.1.3 and build version 20110411

  • #3 / Apr 28, 2011 7:55am

    Ñuño Martínez

    60 posts

    It has sense.  I hope I can update the copy (my boss is an odd boy…) and fix this.

    Thank you.

  • #4 / Apr 28, 2011 3:38pm

    Brandon Jones

    5500 posts

    Very good Ñuño. Let us know if you run into any other issues.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases