Forum Moderators: coopster
I'm working on a shared server, so the bugs apply to me.
For now to ensure safety I was generating for a specific user a random pass and was storing it in a cookie (on client's side, valid for 1 hour) and in database on server side. At every page change I was reading the pass from the cookie, comparing it with the one stored in a database and then updating the cookie for an hour. When logging out only database was updated.
Which is the better option - session still, or the method devised above? The pass generated was random numbers and letters, random length ranging from 10 to 255, case sensitive.
Thnx for any advise.
If needed I can present the source.
create a new directory, figure out its path from root, and use session_save_path()
[be2.php.net] (before
session_start()is called) and you've moved your session storage to your own personal sessions directory.