Connecting Tech Pros Worldwide Help | Site Map

PHP Multiple Instances / Sessions Question

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 10:47 AM
ubccis@gmail.com
Guest
 
Posts: n/a
Default PHP Multiple Instances / Sessions Question

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, 10:47 AM
Andy Hassall
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.