Lamez Posted October 11, 2008 Share Posted October 11, 2008 ok, I am working on my ELC again, and I am working on the blacklisting part. Well I am tying to hide the url that is blacklisted, and if I use a session variable, then you can just look in your cookies and find the url. I am dealing with multiple pages, so I need a way to carry variables through different pages. How? Thanks Guys! Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/ Share on other sites More sharing options...
JasonLewis Posted October 11, 2008 Share Posted October 11, 2008 Huh? Isn't session data stored on the server? Clients have no access to session data, only to cookie data. Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662411 Share on other sites More sharing options...
Lamez Posted October 11, 2008 Author Share Posted October 11, 2008 Well I am fairly new to php, so I do not know. So if I set a session variable, there is no way a user can see its contents. example <?php $_SESSION['var'] = "google.com"; echo $_SESSION['var']; ?> so using something like that will not give a user access to the information that is stored in the session variable var? Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662413 Share on other sites More sharing options...
xtopolis Posted October 11, 2008 Share Posted October 11, 2008 Users cannot see $_SESSION contents unless you show it to them, or possibly your server crashes and outputs. Your script will only show the user "google.com" Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662417 Share on other sites More sharing options...
JasonLewis Posted October 11, 2008 Share Posted October 11, 2008 Yeah, what xtopolis said. Cookie data is stored on the client machine and is viewable by clients, etc. Session data is stored on your server and cannot be accessed by clients. So it would be perfectly safe for you to use sessions. Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662421 Share on other sites More sharing options...
taith Posted October 11, 2008 Share Posted October 11, 2008 the only thing that sessions store on the computer, is a cookie, with the session_id()... that cookie is read by the parsing generator, and looks in the protected file on the server to grab the information... while the user can access the sessid... then have NO ACCESS to the session data, outside of when php's being parsed(your controls)... Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662425 Share on other sites More sharing options...
Lamez Posted October 11, 2008 Author Share Posted October 11, 2008 thanks guys for the information! Quote Link to comment https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/#findComment-662534 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.