Boss, to ask you questions, hope advice
Brief introduction:
I use AJAX login, after successful landing, the UserID record session, and jump to the inside page
Problem:
Always prompt for session timeout or invalid when jumping to inner page
My research:
Ajax access and browser orientation are subordinate to different processes, so PHP generates a different session, so this situation is caused. Do not know how to solve. Thank you.
Reply to discussion (solution)
Through my experiments, confirmed that AJAX access and browser access generated a session file, and online rumors do not match ah
With Ajax, there's no "jump".
Because once the "jump", the advantage of Ajax lost
The cookie used by Ajax is the same as the cookie of the browser, and there is no case where the session ID is different
You should check all the relevant parts of the program to troubleshoot the problem.
Thanks, I'll try.
I also encountered such a situation yesterday, later found that the parent class when checking permissions to clear the session
May be the landlord when the value of the time, did not add the global scope effective it? Only the current page is valid.