473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

session cookie

Hi,

What happens when the the previous session cookie is not destroyed (but
session_destroy() and session_unset() have been used previously) apart
from the fact that the previous session id will be used. Does this mean
that the previous session only will continue?
Could this cause problems while logging in (assuming only the session
id is stored in the cookie and all the session variables are set again
on the checklogin page)?

Harsha

Jan 21 '07 #1
2 1276
Rik
ha***************@gmail.com wrote:
Hi,

What happens when the the previous session cookie is not destroyed
(but session_destroy() and session_unset() have been used previously)
apart from the fact that the previous session id will be used. Does
this mean that the previous session only will continue?

Could this cause problems while logging in (assuming only the session
id is stored in the cookie and all the session variables are set again
on the checklogin page)?
As long as you have deleted all session data it will be treated like a
brand new, shiny session. No previous data will be found.
--
Rik Wasmus
Jan 21 '07 #2
Thanks for the answer...I was wondering if you could help me out with
the following problem:

We have a website which requires a login...and the login is
authenticate via ssh2....by using the ssh2 functions in php...the
webserver is apache...
However, sometimes, the ssh2_connect function returns false if you
login again sometime after you have logged out....i.e. the connection
is not established...I am not able to find the reason why as not error
is generated...however ig you clear the browser cache and close and
open the browser again, it logs in jsut fine...the ssl logs just shows
that the child process has been terminated....
I am just not able to understand the connection...it would be great if
you could help me out

Thanks,
HArsha

On Jan 20, 7:52 pm, "Rik" <luiheidsgoe...@hotmail.comwrote:
harsha.patiban...@gmail.com wrote:
Hi,
What happens when the the previoussessioncookie is not destroyed
(but session_destroy() and session_unset() have been used previously)
apart from the fact that the previoussessionid will be used. Does
this mean that the previoussessiononly will continue?
Could this cause problems while logging in (assuming only thesession
id is stored in the cookie and all thesessionvariables are set again
on the checklogin page)?As long as you have deleted allsessiondata it will be treated like a
brand new, shinysession. No previous data will be found.
--
Rik Wasmus
Jan 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
3
by: M Wells | last post by:
Hi All, Just wondering how you go about changing the value of a session cookie via javascript? I have a PHP page that sets a session cookie when it first loads. I'd like to be able to change...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
5
by: Åženol Akbulak | last post by:
Hello; I use in my web application FormsAuthentication. Also I use Session state (InProc). When a user logged in, I can read Session parameters. (For example Session). Problem is that, when...
13
by: Goofy | last post by:
Does anyone know how I can kill a session by session ID ? -- Goofy
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.