a question about sessions and custom sessions
Posted: Thu Mar 20, 2003 10:16 am
Hello,
I am asking this question mainly because i am begining to recieve alot of vastly different suggestions in response to it
i am using the server generated session or session is using session_start(PHPSESSID) to track a visitor untill he has finished filling out a form. the reason i did this is because it was the most simplist way i find to identify a person temporaraly
the problem i seem to be facing is that i am unable to unregister or destroy the session. using session_unset() and session_destroy() as after filling out the form and then trying to do it again i notice that the phpsessid is the same even when i flush the browser cache.
why is it not freeing/ destroying the session?
now i was attempting to use a session_id and session_name but kept running into a heaer alreay sent error scenario
was this my best approach? as it seems to work very well with me as the session id was being auto generated for me by php / sever and using it was as easy as echo $PHPSESSID
is there any downfall to this method other than the extra long id # which i dont mind?
Kendall
I am asking this question mainly because i am begining to recieve alot of vastly different suggestions in response to it
i am using the server generated session or session is using session_start(PHPSESSID) to track a visitor untill he has finished filling out a form. the reason i did this is because it was the most simplist way i find to identify a person temporaraly
the problem i seem to be facing is that i am unable to unregister or destroy the session. using session_unset() and session_destroy() as after filling out the form and then trying to do it again i notice that the phpsessid is the same even when i flush the browser cache.
why is it not freeing/ destroying the session?
now i was attempting to use a session_id and session_name but kept running into a heaer alreay sent error scenario
was this my best approach? as it seems to work very well with me as the session id was being auto generated for me by php / sever and using it was as easy as echo $PHPSESSID
is there any downfall to this method other than the extra long id # which i dont mind?
Kendall