![]() |
Understanding Session ID
Hi guys,
I am starting work on a large development with some pretty sensitive data so want to push to make the site as secure as possible. I have been reading a bit about security but am having a bit of trouble understanding how session_id works. In the past my login scripts sets something like: PHP Code:
PHP Code:
I'm sorry if this is an extremely stupid question, Mike |
I always use HTTP_USER_AGENT and regenerate_id() on every page that is suppose to be secure.
You can put (mail) function under the echo if you really want to send an email whenever the session does not match the HTTP_USER_AGENT. You can also use md5 to generate an encryption session All these little stuff help you stop Session Hijacking. |
Thank you. But i can't working with it. You can test two file help me. Login.php
PHP Code:
PHP Code:
|
A simple search on php.net will show you why
session_register: Quote:
|
Ha ha. Thank you very much ^^.
I hope you will support me in very much error! I programming poor. |
I want ask you:
- If login sucessfful (i.e: when user login and check to "Remember account"), i will create 1 cookie same time? - why HTTP_USER_AGENT and regenerate_id() secure. You can talk about it clearly. |
| All times are GMT. The time now is 08:04 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0