Welcome Guest, Not a member yet? Register   Sign In
setting custom session variables
#9

[eluser]tonanbarbarian[/eluser]
Technically if your session processing is just storing information the cookie it could be considered dangerous
But how often do you find a situation where someone has actually modified their cookie data?
The average visitor to your site would have NO CLUE how to modify the cookie data.

That said I prefer to put NOTHING in the cookie that is not needed. So if I can I will use a session library (like db_session) that stores all of the data on the server somewhere (in the case of db_session in the database) thus ensuring that the user cannot change any data except via the interface given in the website.

If all you are storing in the session is their choice of favorite colour or something innocent like that dont worry, but if you are storing anything to do with user authentication and validation it should not be in the cookie.
For authenticated sessions only a unique session id should be in the cookie.

Just my opinion


Messages In This Thread
setting custom session variables - by El Forum - 11-27-2007, 02:11 AM
setting custom session variables - by El Forum - 11-27-2007, 04:30 AM
setting custom session variables - by El Forum - 11-27-2007, 07:16 AM
setting custom session variables - by El Forum - 11-28-2007, 02:02 AM
setting custom session variables - by El Forum - 12-07-2007, 11:35 AM
setting custom session variables - by El Forum - 12-16-2007, 07:48 PM
setting custom session variables - by El Forum - 01-05-2008, 09:24 AM
setting custom session variables - by El Forum - 01-07-2008, 06:43 PM
setting custom session variables - by El Forum - 01-07-2008, 09:28 PM
setting custom session variables - by El Forum - 01-10-2008, 03:55 AM
setting custom session variables - by El Forum - 02-04-2008, 12:13 AM
setting custom session variables - by El Forum - 11-19-2009, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB