$_session['user_id']=4;
Where this values of session is saved.. means in some file?? where??
$_session['user_id']=4;
Where this values of session is saved.. means in some file?? where??
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.
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
PHP saves sessions in files. The location of these files is determined in php.ini by the session.save_path setting.