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

WBOY
Release: 2016-06-13 11:27:04
Original
1047 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template