Connecting Tech Pros Worldwide Help | Site Map

PHP Multiple Instances / Sessions Question

  #1  
Old July 17th, 2005, 11:47 AM
ubccis@gmail.com
Guest
 
Posts: n/a
Hi.

I am currently running 2 instances of a web application on the same
server.
one of them has address http://www.justanexample.com/prod and the other
has an address of http://www.justanexample.com/ipeer_demo. By logging
into the demo with the guest passwords, the address becomes
http://www.justanexample.com/ipeer_d...n=Student.home.
I can get into the production instance by simply changing the base url
to http://www.justanexample.com/prod/in...n=Student.home and
hitting enter. I'm sure there are quite a few solutions to this, but
what do you think is the most secure way of overcomming this problem?

  #2  
Old July 17th, 2005, 11:47 AM
Andy Hassall
Guest
 
Posts: n/a

re: PHP Multiple Instances / Sessions Question


On 18 Jan 2005 10:18:46 -0800, ubccis@gmail.com wrote:
[color=blue]
>I am currently running 2 instances of a web application on the same
>server.
>one of them has address http://www.justanexample.com/prod and the other
>has an address of http://www.justanexample.com/ipeer_demo. By logging
>into the demo with the guest passwords, the address becomes
>http://www.justanexample.com/ipeer_d...n=Student.home.
>I can get into the production instance by simply changing the base url
>to http://www.justanexample.com/prod/in...n=Student.home and
>hitting enter. I'm sure there are quite a few solutions to this, but
>what do you think is the most secure way of overcomming this problem?[/color]

So basically you want separate sets of session variables between the two? Try
session_name().

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sessions and closing the browser Theo answers 22 July 17th, 2005 09:53 AM
handling multiple sessions?? john answers 4 July 17th, 2005 08:56 AM
Sharing instances over requests/sessions Vic answers 1 July 17th, 2005 06:38 AM