Home >Backend Development >PHP Tutorial > jquery.getJson() session不一致有关问题

jquery.getJson() session不一致有关问题

WBOY
WBOYOriginal
2016-06-13 12:44:321050browse

jquery.getJson() session不一致问题
大家好,我是PHP新手,最近在做个网站,我用下面的代码异步请求到register.php,但register.php与login.php 打印出来的sessionId是不一致的,以前遇到过这个问题,是jquery版本太低造成,但现在换了最高版本也有这个问题,哪位高手帮我解决一下。

$.getJSON(“register.php”,{username:username},function(data){
   $("#lgform").submit(); //提交到login.jsp
});

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn