Jump to content

Recommended Posts

Hi all,

 

I have to do a presentation tomorrow on the website I've built and I'm worried about getting asked a question on the security of my system. For my website I'm using PHP sessions and at the beginning of each page I've got code to check if the session is registered.

 

I want to ask: is this method secure? I know compared to cookies it is cos cookies are stored on the browser so you can 'easily' (thought I don't know how) change cookies variables. Is it true you can't change session variables?

 

Also I've read that there are a few "security hole" to do with sessions. But I can't find any literature that talk about this. Can anyone help me?

 

Thanks~!

Link to comment
https://forums.phpfreaks.com/topic/69152-php-sessions/
Share on other sites

Sessions can suffer from abuse such as Session Fixation and Session Hijacking.

 

Refer to the following sites for more information;

- http://phpsec.org

- http://phpsecurity.org

- http://shiftlett.org

 

If you are worried about storing data it self, you can encrypt it so that session data can not be read without the correct key. Look into session_set_handler() function

Link to comment
https://forums.phpfreaks.com/topic/69152-php-sessions/#findComment-347602
Share on other sites

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.