save 2 different sessions for same domain, but different paths
I'd like to be able to set up 2 different sessions at the same domain,
but different paths, without changing anything in my scripts. I went
into php.ini, and changed session.cookie_path to be blank. Now, the
cookies that php uses show the correct path. But somehow, whenever I go
the the second url, a new cookie is created with the exact same value
as the first one. In effect, php won't let me use 2 different sessions
at the same time.
Has anyone else experienced this, and is there any way to get around
this.
Your help is appreciated. Thank you.
- Alex
.
Relevant Pages
- Re: New to PHP ... some questions from a newbie
... PHP concepts where I'm still foggy. ... cookies or sessions for a relatively simple web app. ... Session data is stored in the superglobal array $_SESSION ... (comp.lang.php) - Re: Perl to use and create PHP sessions?
... the main area (PHP driven), they should be able to use my contributed ... Ideally, if they hit my scripts first and log in there, they ... I've rolled out my own custom sessions for the Perl scripts, ... logging in and using all areas (PHP or Perl ... (comp.lang.perl.misc) - PHP Session Problem
... I am trying to get to grips with PHP Sessions. ... logon script that works fine so long as the client allows cookies. ... The scripts I use for testing are below. ... echo $_SESSION; ... (alt.php) - PHP Session Problem
... I am trying to get to grips with PHP Sessions. ... logon script that works fine so long as the client allows cookies. ... The scripts I use for testing are below. ... echo $_SESSION; ... (comp.lang.php) - Re: help with install
... > but anything involving sessions, forms and cookies etc just doesn't work. ... even though the PHP code is actually ... security issues), or rewrite your scripts for "off-support", e.g. ... (php.general) |
|