Sessions - I'm stuck!
Posted: Tue Mar 21, 2006 9:15 am
I've spent the day trying to get my head round getting sessions working on a site and I just seem to be getting absoluitely no where. I've tried a number of different times and read a load of examples and tutorials yet still seem to be in "stupid" mode and just not getting it working.
Basically I have a site (I bet you didn't see that one coming). I have it currently that on logon.php there is a form with email & password to be filled in and then the form is submitted (POST) to logon2.php
logon2.php then has some code that look sup the email address and password to make sure that they match and then if they do I have a line of code that creates a link for users to clickon to log into their user area (userdetails.php)
I know that this way is very un-secure as the email address and password get written to the address bar so anyone could come along and check the history of the computer and click on it and they would be able to be logged in 
I'm tearing my hair out now trying to get this working (well other than I have a skinhead so not exactly true), can anyone help me with this please, as the only session I feel like now is one down the pub as today's efforts have got me no where.
I must add that I did get some basic session working before so I oculd display a session but I don't think they were actually doing anythign else other than displaying the number as it was still possible to click on history link an dlog in and also the email and password were still egtting written out.
So, does anyone think they can help (it is my birthday tommorrow, not that that will make a jot of difference to anyone here I guess)
Cheers
Wardy
Basically I have a site (I bet you didn't see that one coming). I have it currently that on logon.php there is a form with email & password to be filled in and then the form is submitted (POST) to logon2.php
logon2.php then has some code that look sup the email address and password to make sure that they match and then if they do I have a line of code that creates a link for users to clickon to log into their user area (userdetails.php)
Code: Select all
echo("Thank you for logging in. Click <a href=\"userdetails.php?password=$password&email=$email\">here</a> to continue.");I'm tearing my hair out now trying to get this working (well other than I have a skinhead so not exactly true), can anyone help me with this please, as the only session I feel like now is one down the pub as today's efforts have got me no where.
I must add that I did get some basic session working before so I oculd display a session but I don't think they were actually doing anythign else other than displaying the number as it was still possible to click on history link an dlog in and also the email and password were still egtting written out.
So, does anyone think they can help (it is my birthday tommorrow, not that that will make a jot of difference to anyone here I guess)
Cheers
Wardy