Page 1 of 1

code about session regeneration

Posted: Thu May 24, 2012 12:07 am
by prakash.7
is there possibility to store the array of session variables into database and retrieve after few days with that name with out changing any data ?
thanks.

Re: code about session regeneration

Posted: Thu May 24, 2012 12:31 am
by social_experiment
prakash.7 wrote:is there possibility to store the array of session variables into database and retrieve after few days with that name with out changing any data ?
definitely you can store the data, the problem will be whether the data is still use-able because sessions expire when the browser window is closed. Unless you store the data in a cookie and then match that to whatever values you have stored in the database. Which 'name' are you referring to here; the session id? a session variable name?