Hello everyone, this is my first time asking a question in the PHP forum (as I in general am much more experienced in it) instead of where I usually troll around on the JavaScript one.
I am pretty sure this does exactly as I have intended it to do... Control a session...
This script has no errors (I'm pretty sure).
But I just wanted to know if anyone can find a way to "hijack" a session without being on a computer under the same IP address. (Which is possible mostly if that user has cookies disabled, and that user copies the $_GET variable: SID. Whereas you should not be able to do that if the user has cookies enabled, without manually adding/editing your session cookie)
The ONLY way to steal someone's session should be if you're on a computer under the same IP address as that someone.
Note that I haven't added anything to set a user's cookies, this will be added later.
Thanks to everyone who is willing to double-check my code. :)
<code removed as per the posting guidelines>
I am pretty sure this does exactly as I have intended it to do... Control a session...
This script has no errors (I'm pretty sure).
But I just wanted to know if anyone can find a way to "hijack" a session without being on a computer under the same IP address. (Which is possible mostly if that user has cookies disabled, and that user copies the $_GET variable: SID. Whereas you should not be able to do that if the user has cookies enabled, without manually adding/editing your session cookie)
The ONLY way to steal someone's session should be if you're on a computer under the same IP address as that someone.
Note that I haven't added anything to set a user's cookies, this will be added later.
Thanks to everyone who is willing to double-check my code. :)
<code removed as per the posting guidelines>
Comment