Jump to content

Sessions


Callister

Recommended Posts

First of all, if I did something like this:

 

$_SESSION['user_id'] = $row['ID'];

$_SESSION['logged_in'] = TRUE;

header("Location: blahblah.php");

 

How long would this session last?

 

Additionally, I typically see people against sessions. Why do people seem to be against them, and is there anything serious wrong with doing the above?

 

Thank you for your time

Link to comment
https://forums.phpfreaks.com/topic/110854-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.