code about session regeneration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

code about session regeneration

Postby prakash.7 » Thu May 24, 2012 12:07 am

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.
prakash.7
Forum Newbie
 
Posts: 2
Joined: Thu May 03, 2012 10:50 pm

Re: code about session regeneration

Postby social_experiment » Thu May 24, 2012 12:31 am

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?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
social_experiment
DevNet Master
 
Posts: 2768
Joined: Sun Feb 15, 2009 12:08 pm
Location: .za


Return to PHP - Code

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 13 guests