session lost(SOLVED)
Posted: Sun Jan 21, 2007 9:06 am
Hi
i have a page that take some user input and save the data to the mysql database. every user identified by the userid that i bind into a session variable $_SESSION['userid'] after successful login. the page i get after a successful login, i have couple of fields to give input. i am posting the form to the same page i am taking the user input and then storing that into the database with the session userid. my problem is if i do the same activitiy several time on the page, posting the form several time, then suddenly it lost the session data i.e, $_SESSION['userid'].
any solution/advise will be highly appreciated!
Thanks.
Hassan
i have a page that take some user input and save the data to the mysql database. every user identified by the userid that i bind into a session variable $_SESSION['userid'] after successful login. the page i get after a successful login, i have couple of fields to give input. i am posting the form to the same page i am taking the user input and then storing that into the database with the session userid. my problem is if i do the same activitiy several time on the page, posting the form several time, then suddenly it lost the session data i.e, $_SESSION['userid'].
any solution/advise will be highly appreciated!
Thanks.
Hassan