Re: Making session last
| From: | Geir Eivind Mork | Date: | Tue, 25 Sep 2001 10:26:11 +0000 |
| Subject: | Re: Making session last | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68677@lists.php.net to get a copy of this message | ||
Martin wrote:
> The sessions-functions works really fine. But I got one Problem: How can
> I make the php-session last more then a browser-session? When the users
Now it isn't a 'session' for nothing, for your use I guess cookies and storage
of state in database is a much better thing.
to make a valid example just put an unique string in a cookie and store the
user settings in the database (or file system in cause you're silly enough not
to use a database ;) and then just fetch them when the user enters the page and
the cookie exists.
--
PHP Developer, home: http://www.moijk.net | work: http://www.coretrek.com
rawurldecode: Decode URL-encoded strings |
http://www.php.net/manual/en/function.rawurldecode.php