Warning: session_start() [function.session-start]:
open(C:/Users/Tem/AppData/Local/Temp\sess_9f20c149aca0a77bee562d46784ea568, O_RDWR) failed: No such file or directory (2) in C:\AppServ\www\fhtrading\libraries\joomla\session\session.php
我这里的问题是:我将用户id保存在$_SESSION中,以便在需要时恢复它,当我手动登录时,$_SESSION变量很容易保存,我可以随时调用它们,但当应用程序自动登录时(显然是在第一次登录后,用户名和密码存储在iPhone密钥链中),$_SESSION变量没有保存,我注意到只有在我注销后才会存储和调用它们,这就是在session_destroy();之后,下面是我用于登录和注销的php代码
session_startusername='%s' AND pass='%s