having big trouble managing my sessions so I'm asking help.
the scenario
from 1 iphone I load index.php login form here
jquery
$("#login").live('click', function(event) {
//here I've the user input username and password an load the login.php
}
in login.php I also have the session_start() and If user is indeed who he claims to be I declare session['user'] = $user; and session['pass'] = $pass;
and then redirect him to imap.php
imap.php has also session_start()
he does everything and returns a html string with some divs I will use as buttons
jquery
$("#erase").live('click', function(event) {
//here i load the erase.php
erase.php
also have session_start()
, but now the session['user']
and session['pass']
are gone...
all the loads are made with post method
What can I do to maintain the sessions variables?
Thanks