Jump to content

modify session data?


Shilo

Recommended Posts

Just out of curiosity...

 

... Is it possible for people to modify thier session data. for example:

 

If there session user_level was = 0. is it possible for them to modify it to be user_level = 1? or would they have to access the server files to do it.

 

Basically what im asking is: When a session is registered. is any form of the session stored on the clients computer like a cookie is? or am I pretty safe registering user_level =0 or =1 and having like

 

<?php
if ($_SESSION['user_level'] = 0){
echo 'user links';
}
if ($_SESSION['user_level'] = 1){
echo 'admin links';
}
?>

Link to comment
https://forums.phpfreaks.com/topic/134801-modify-session-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.