Jump to content

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/127932-a-replacement-for-session-variables/
Share on other sites

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?

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.

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)...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.