There is an easier way: session_name.
Prior to calling session_start();
call session_name("something");
(where you change something to whatever you want it to be called).
More Related Contents:
- Parse error: syntax error, unexpected T_STRING in C:\wamp\www\b_php\project\login_save.php on line 14 [closed]
- Session variables not working php
- “Keep Me Logged In” – the best approach
- How to fix the session_register() deprecated issue?
- PHP: Storing ‘objects’ inside the $_SESSION
- Preventing session hijacking
- How can I fix the Permission error when I call session_start()?
- What is the default lifetime of a session?
- PHP sessions timing out too quickly
- proper way to logout from a session in PHP
- Maximum size of a PHP session
- Looping Through All a Server’s Sessions in PHP
- Can’t pass mysqli connection in session in php
- Set Session variable using javascript in PHP
- Cross domain PHP Sessions
- Find Number of Open Sessions
- PHP Warning Permission denied (13) on session_start() [duplicate]
- How to destroy the session cookie correctly with PHP?
- CakePHP remember me with Auth
- Access active sessions in PHP
- What is the difference between session_unset() and session_destroy() in PHP?
- Cookies vs. sessions in PHP
- Laravel 5 Session Lifetime
- session_start hangs
- PHP session IDs — how are they generated? [duplicate]
- PHP Session ID changing on every request
- How to keep a PHP session active even if the browser is closed?
- PHP authentication with multiple domains and subdomains
- destroy session when broswer tab closed
- How to send cookies with file_get_contents