Hi,
I have a homepage where it is possible to register as a user. The
registration takes place in three steps.
The first step is user data and in the end it sets session variables
to username and password like:
session_start() ;
$_SESSION['username'] = $userArr['email'];
$_SESSION['password'] = $userArr['password'];
After this it redirects to page 2. Page 2 checks the newly set session
variables and shoud check them against the database. This works 8
times out of ten but sometimes the registation fails since the session
variables not are set in page 2 and I can't figure out why.
Can somebody explain why this fails sometimes and sometimes not. Does
it have anyting to do with the secutity level of the users browser
etc. Does it have something to do with the activity on the site at the
time?
I tried to set my own browser security to highest(both NS and IE) but
it works for me.
Please give me a hint to solve this problem.
regards,
karolina
I have a homepage where it is possible to register as a user. The
registration takes place in three steps.
The first step is user data and in the end it sets session variables
to username and password like:
session_start() ;
$_SESSION['username'] = $userArr['email'];
$_SESSION['password'] = $userArr['password'];
After this it redirects to page 2. Page 2 checks the newly set session
variables and shoud check them against the database. This works 8
times out of ten but sometimes the registation fails since the session
variables not are set in page 2 and I can't figure out why.
Can somebody explain why this fails sometimes and sometimes not. Does
it have anyting to do with the secutity level of the users browser
etc. Does it have something to do with the activity on the site at the
time?
I tried to set my own browser security to highest(both NS and IE) but
it works for me.
Please give me a hint to solve this problem.
regards,
karolina
Comment