开发者

Where the values in the sessions are saved

 $_session['user_id']=4;

Where this values of session is saved.. mean开发者_如何学Gos in some file?? where??


Yes, they are stored in a temporary file somewhere on the server your website resides on. You can specify that setting in php.ini with session.save_path.

You could also use the function session_save_path to set and get session path from your script.

Syntax:

string session_save_path ([ string $path ] )

session_save_path — Get and/or set the current session save path


Isn't it in a temp file in session.save_path, whatever that is set to?

You might also find the answer you want in more detail here.


By default I think php stores its session information on the server, although you can override this to store session information in cookies on the client side.


PHP saves sessions in files. The location of these files is determined in php.ini by the session.save_path setting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜