php help
php help
Out of context: Reply #6
- Started
- Last post
- 8 Responses
- mantrakid0
Sessions are like cookies but theyre stored on the server.
http://www.tuxradar.com/practica…
//Start using sessions - put this at the top of your code
session_start();//Then set a session variable
$_SESSION['use_mobile'] = 'y';//Now you can change that variable based on some logic...
if ($_SERVER['HTTP_REFERER'] == 'http://www.example.com/m') {
$_SESSION['use_mobile'] = 'n';
}etc...