kvarnerexpress
Feb 8 2006, 07:47 PM
| | Hey all, I am having trouble keeping session variables. If a visitor comes to our website, has a session variable set, then leaves our website and comes back, without closing their browser, should they lose their session variables? This is what's happening to me, and I was under the impression that session variables lasted until the expiration/inactivity timeout, or until the browser was closed. Am I wrong?
|
Reply
kvkv
Feb 9 2006, 12:06 AM
Yes. If the user closes the browser, he loses his session variables. Session variables are always tied down to a browser session. By the way, what is the trouble you are facing? It is not very clear from your description.
Reply
OpaQue
Feb 9 2006, 12:06 AM
Session variables are supposed to exist as long as the browser window is open. However, since the browser which is a client side application is coming into picture, it MIGHT depend on the browser you are using and how it treats session variables. Did you try this with diffrent browsers ?
Reply
Recent Queries:--
php session lifespan - 30.81 hr back.
-
asp.net command to destroy all session variables - 43.68 hr back.
-
session lifespan - 165.83 hr back.
-
lifespan asp session cookie - 170.78 hr back.
-
life span queries - 171.93 hr back.
-
asp.net force logout session ban - 214.79 hr back.
-
php-fusion session timeout - 223.04 hr back.
Similar Topics
Keywords : session, lifespan
- Php Session
(6)
Php-fusion Cms
No session_start() used? (3) A while back i was looking for free hosting and a forumn suite for my own comunity. I ended up using
hostingdirect.co.nz and php-fusion from http://php-fusion.co.uk It was pretty easy to setup and
run. But my site required more specific functions other then generic CMS could offer and I wanted to
learn PHP so I start reading tutorials and such to learn. I was working on them locally and they
seem to run fine on my own server. When i upload my own site to the hostingdirect site I find they
do not have safe_mode off. I got an error in my index.php file when i try and ru....
Storing Session Variables Generated Dynamically
(3) i have many pool (quiz) modules on my site with the information taken from a database. The modules
are processed by the same function with different parameters and i need to save the pool's
status to prevent a user vote several times. I do this setting $_SESSION to 1 , variable
being the name of the quiz, which is taken from the database. So i get to having a code like this:
.................... $name= $row->quiz_name; $_SESSION =1 The problem is that if
i call $_SESSION from another part of the site (another page) the variable is al....
Php - Can Anyone Tell Me What "session" Actually Do?
(5) php - can anyone tell me what "session" actually do? I was looking at this page
http://www.w3schools.com/php/php_sessions.asp this paragraph here: A PHP session solves this
problem by allowing you to store user information on the server for later use (i.e. username,
shopping items, etc). However, session information is temporary and will be deleted after the user
has left the website. If you need a permanent storage you may want to store the data in a database.
Especially this part below: QUOTE A PHP session solves this problem by allowing you to store
user in....
Session Variables
Sessions in PHP behaving strangely (4) Hi. I am part of a development team working in PHP and MySQL. The site is using SSL, and users
have to log to use the site. When users log in, their important details are retrieved from the
database and stored in session variables (functionality in the site is permissions specific).
Lately, sessions are "disappearing" for no apparent reason. Users will log in, and at some point
(the length of time will vary unpredicatably) the sessions will lose their value (the variables are
empty) and this causes the site to evict the user. This is very frustrating for the user b....
Session_start()
whats going on with it (8) Hi im using my page in php coding and the session_start() code is messing something up. This is
the error: Warning: session_start(): Cannot send session cookie - headers already sent by (output
started at /home/idimm/public_html/index.html:2) in /home/idimm/public_html/index.html on line 103
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started
at /home/idimm/public_html/index.html:2) in /home/idimm/public_html/index.html on line 103: Does
anyone know how to fix this? It does do the command but it gives this annoying error....
Which Offer More Security: Cookie Or Session?
(4) Which is more popular: Cookie or Session... Which offers more security for login? I believe that it
is the Session because it is not thus stored in the machine not being able to be had access by
others. It is also simpler of being used because we do not need in worrying them about header
informations However I am sincere in saying that I use more cookie.... I do not know why!
/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> What do you think?....
Session - Problem
(0) HI, Im having problem with CGI::Session. I need to assign same session id to user who adds items to
shopping cart. But it creates different ids everytime Im adding item. Im using IIS server, and I
dont see any cookies or session data which should be stored on my computer.It only prints cookie in
browser. I tried different methods nothing works. Here is script, as described in tutorial: use CGI;
$cgi = new CGI; $session = new CGI::Session(undef, $cgi,
{Directory=>'/tmp'}); $cookie = $cgi->cookie(CGISESSID => $session->id );
print ....
Online Rap Session
(13) Anybody up for it...Mind you I'm not a "Whigger" I just find this enjoyable to relax, just post if I
don't reply and I'm online PM me to start it up...I really suck at rapping /happy.gif' border='0'
style='vertical-align:middle' alt='happy.gif' /> ....
force session destroy
(0) Hi
i need to know how to destroy another users session to force them to log out
i.e. an admin
command which when blocking someone also destroys their sessions if they exist.
is the only
way to do it by for each page load requesting to see if they have been banned? - and if so,
destroying it.
Thats gota be a very bad way of doign it - cos it means that every page load
includes a request that 99% of the time wont be needed.
So if someone knows how to destroy
someones session, within your site, remotely - without checking on each page, then that would b....
something wrong with session.savepath
(1) I had problem with session
the error is:
Warning: Unknown(): write failed: No space left on device
(28) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp) in Unknown on line 0....
session n setcookie prob
(0) Hi, i've probs in setting cookies n sessions. When i set them on one pg, it somehow doesn't appear
on other pgs i.e. e variables r empty. But thr doesn't seem to b anything wrong wif e code cos
previously, it was working on another host. Can any1 pls help me? Thank you!
TESTCOOKIE1.php
if(!session_start())
session_start();
$name="he";
setcookie("uname", $name, time()+36000);
setcookie("PHPSESSID",session_id(),time()+3600);
session_register ("test_S");
$HTTP_SESSION_VARS
= "testvalue";
?>
next pg
TESTCOOKIE2.PHP
if(!sessi....
Login And Registration Mysql Problems
Session terminates too quickly (2) Although I'm doing some tweaking, I have finally got just about everything down in developing a
login feature to my website, but just one problem. The session terminates too quickly. For
instance, someone will be instructed to login, and after browsing a couple pages, it'll come up
again that the user is not logged in. In addtion, this occurs frequently but not all the time.
What can I do that will eliminate this inconvience to my viewers?....
Session Start() Problem
Need help with an error (5) Warning: session_start(): Cannot send session cache limiter - headers already sent (output started
at /home/ridouan/public_html/Reviews.php:5) in /home/ridouan/public_html/Reviews.php on line 6
Can't seem to fix the error (im a php noob) So i'd appreciate some help /smile.gif'
border='0' style='vertical-align:middle' alt='smile.gif' /> If you need it: Gamer Online then
click on the Reviews link....
Quick Question About Session Vars
something I can't find anywhere (1) Can you save stuff like classes and arrays in sessionsvariables?....
Looking for session, lifespan
|
|
Searching Video's for session, lifespan
|
advertisement
|
|