View Full Version : is it good idea to insert passwords to php session vars ?
leonidassavvides
04-05-2009, 01:48 PM
is it good idea to insert passwords to php session vars ?
JasonDFR
04-05-2009, 07:32 PM
No.
If you need some other options, explain what prompted this question.
CrazyChop
04-06-2009, 11:15 AM
No.
If you need some other options, explain what prompted this question.
For me, it is to prevent session hacking - that the user somehow changes the user-id in the session, so to do automatic re-authentication in the background now and then.
IMHO, a better solution is to generate unique hash from the sessionid, user's name and the userid (with a prefix hidden from public) and use that as a checksum or something.
That is of course assuming that is what the OP wanted to do :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.