What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?
Tag: session
How to set a session variable when clicking a link
I have the following problem… I want to set a session variable when clicking on a normal link like: home My research seems to point out that it is not …
session wiped out between pages
I’m making a login page and for some reason the session will not persist between where I set it and the page where I am forwarding to. I can comment out the header in the page where the session was initialized and see that the session has the data in it. However, when I do a print_r in the target
What is PHP session_start()
Does it start a current session based on cookies? Got that from the PHP website. How does PHP control the session? If I start a session when a user opens up my login page, what do I even use that session for? Can I use the current session to get info about the logged in user? Answer The PHP session
PHP – make session expire after X minutes
i am using the following technique… From the login.php the form posts to the page check.php where i do this and on loggedin.php page the first thing i do is but once logged in when i directly type the url localhostmyProjectloggedin.php it displays the page…which makes perfect sense because the session has started what i want to implement is The
CodeIgniter is generating multiple sessions in the database. Why?
I have a site which does a few ajax calls on page load. For some reason, CodeIgnitor is inserting 4 sessions (I’m assuming one for each ajax call) as you load the page. I’m storing the sessions in the database. I’m pretty sure there should only be one session per browser. Firefox seems to generate only one; other browsers seem
PHP Session Id changes between pages
I have a problem where i am losing the PHP session between 2 pages. The session_start() is included in a file called session-inc.php into every page requiring a session to be set. This works for all pages on the site except one particular page, member-profile.php. When this page is visited a new session with a different id (same session name)
How do PHP sessions work? (not “how are they used?”)
Session files are usually stored in, say, /tmp/ on the server, and named sess_{session_id}. I have been looking at the contents and cannot figure out how they really work. Fetching the variable name and and content from the file is easy. But how does PHP know what session belongs to whom? The session_id seems totally random and one IP address
Automatically re-direct a user when session Times out or goes idle
I want to have a timer going to run every 3 minutes on the page (javascript), to detect if a php session ($_SESSION) has timed out… and if so, redirect them automatically. A good example would be, a user logs in and runs up stairs, and never comes back down… I want the javascript to log them out with a
PHP Pass variable to next page
It seems pretty simple but I can’t find a good way to do it. Say in the first page I create a variable And the form’s action for that page is “Page2.php”. So in Page2.php, how can I have access to that variable? I know I can do it with sessions but I think it’s too much for a simple