Problems related to inconsistent jquery. getJson () sessions
Source: Internet
Author: User
Jquery. hello, everyone. I am a beginner in PHP and recently am working on a website. I used the following code to asynchronously request to register. php, but register. php and login. php & nbsp; The printed sessionId is inconsistent. we have encountered this problem before jquery. getJson () session inconsistency
Hello everyone, I am a beginner in PHP. I recently made a website and used the following code to asynchronously request to register. php, but register. php and login. the sessionId printed by php is inconsistent. I have encountered this problem before, because the jquery version is too low, but now the highest version also has this problem. which expert can help me solve this problem.
$. GetJSON ("register. php", {username: username}, function (data ){
$ ("# Lgform"). submit (); // submit to login. jsp
}); Share:
------ Solution --------------------
The session has nothing to do with jquery. most of the problems are caused by your code. It can be pasted for analysis.
------ Solution --------------------
Please provide the complete test code. it is impossible for people to write code to verify what you cannot do.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service