Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,我有一个使用 ajax 加载内容的动态 php 页面。它加载的内容应该从会话变量中获取内容,但它不能,因为我没有session_start(). session_start()我这样做了,只是在实际页面加载时它已经被处理,并且在内容加载时我无法添加另一个。还有其他方法吗?
session_start()
谢谢
session_start() 只是恢复正在进行的现有会话,因此您可以在 AJAX 处理程序中调用它。