Login problem in safari..redirect() make problem |
[eluser]Zeeshan Rasool[/eluser]
Hi every one, i have a little issue that i have login problem in safari. I cant login it take me to login page again and again while other browsers took me to dash board. I have correct login info but safari make problem, Here is code part I enter in first if condition but redirect function did'nt take me to main() function i put a die() in main but it never go in main(). Code: if($res!=0) Please give a solution Thanks
[eluser]pistolPete[/eluser]
I guess you should not echo before using redirect() like the user guide says: Quote:Note: In order for this function to work it must be used before anything is outputted to the browser since it utilizes server headers.
[eluser]Zeeshan Rasool[/eluser]
You are right but it was just testing purpose. I found the reason actually safari has session problem, In below code you will see that i am inserting data at login time but session id which i used before each function to check wether its session time exceed, this id is different from other browser i mean it put a session id in DB and i store that id in session but it is not actual value which i echoed on insertion time. But other browser put same session id which is on insertion time I dont know wats problem. Why safari has this problem Code: $IP=$_SERVER['SERVER_ADDR']; |
Welcome Guest, Not a member yet? Register Sign In |