Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Can I have same session ID for two domains w/in a same ser..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Internal Server Error  
Author Message
aladar

External


Since: Aug 18, 2003
Posts: 6



(Msg. 1) Posted: Mon Aug 25, 2003 8:47 pm
Post subject: Can I have same session ID for two domains w/in a same server?
Archived from groups: alt>apache>configuration (more info?)

Hello list,

I have an web application that toggles between www.mydomain.com and
secure.mydomain.com within a same server. The problem is that when I toggle,
the session information is no longer unique between the two hosts (www &
secure, in the example above). For example, the app allows users to place
items in the shopping cart (on www host), and checkout at secure host via
SSL. However, when Apache web server tries to retrieve cart information from
secure server, it's no longer available. If I use the same host for both
secure and non-secure pages, it works fine.

Is there a configuration directive that will allow me to do this? Or, is
this a PHP issue? I'm using PHP to write an application, by the way. Thanks
much for your help.

Scott

 >> Stay informed about: Can I have same session ID for two domains w/in a same ser.. 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Tue Aug 26, 2003 5:53 pm
Post subject: Re: Can I have same session ID for two domains w/in a same server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I have an web application that toggles between <a style='text-decoration: underline;' href="http://www.mydomain.com" target="_blank">www.mydomain.com</a> and
 > secure.mydomain.com within a same server. The problem is that when I toggle,
 > the session information is no longer unique between the two hosts (www &
 > secure, in the example above). For example, the app allows users to place
 > items in the shopping cart (on www host), and checkout at secure host via
 > SSL. However, when Apache web server tries to retrieve cart information from
 > secure server, it's no longer available. If I use the same host for both
 > secure and non-secure pages, it works fine.

so the cookies php uses to keep session state are probably
host-specific. one might make them domain-specific if one owns the
whole domain. see rfc2965 for further reference.

 > Is there a configuration directive that will allow me to do this? Or, is
 > this a PHP issue? I'm using PHP to write an application, by the way. Thanks
 > much for your help.

sorry, i don't know a lot about php, so i cannot tell you how to make
it use cookies specific to mydomain.com vs <a style='text-decoration: underline;' href="http://www.mydomain.com." target="_blank">www.mydomain.com.</a> maybe ask
in some php group for that.

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Can I have same session ID for two domains w/in a same ser.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual domains -- Help! - Hello, For some reason, Apache isn't pointing each domain to a seperate folder, this the last part of my httpd.conf: NameVirtualHost serversip <VirtualHost serversip> DocumentRoot /home/mydomain1 ServerName mydomain.org </VirtualHost> &...

Apache sub domains... should be an easy fix - i am having a problem setting up multiple domains with sub domains here is sample from config file NameVirtualHost * <VirtualHost *> DocumentRoot /www/docs/1guideusa.com ServerName www.1guideusa.com </VirtualHost> <VirtualHost ...

Apache session problem (bug?) - Currently I am running Apache/1.3.27 width PHP/4.3.2 After a while I cannot login to sites that make use of sessions (like Squirrel). If Apache is restarted all is fine again. I suspect this is a bug and tried to find a solution on the internet..

session expiring early - Sessions stored in cookies have been expiring prematurely on Apache/Linux. Although my hosts have been working (I think) on the problem for 24 hours the problem still remains. Is there a php script or something that can do a diagnosis? Or any thoughts o...

Virtual hosts: 2 Domains that point to the same directory - Hi there I created two virtual hosts that have the same directory as the DocumentRoot: <VirtualHost *> DocumentRoot /web/html ServerName a.com </VirtualHost> <VirtualHost *> DocumentRoot /web/html Serve...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]