Current location: Hot Scripts Forums » Programming Languages » PHP » Multiple sessions


Multiple sessions

Reply
  #1 (permalink)  
Old 01-14-04, 06:55 PM
Kaanha Kaanha is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Help on Multiple sessions

Hi, I've got a site that is actually a combination of 2 sites. On both sections of the site I'm starting a session, the two sessiosn conflict. Depending on which you go to first the other returns an error saying headers already send and unable to write session data. I've tried destorying the sessions with every means I know how. What can be done about this. Both parts of the site need their own individual sessions running because they are, in all aspects, two very different sites that are linked togehter.

The first site:
www.animeconnection.us

The second:
www.animeconnection.us/cgi-bin/index.php
(PHP run as cgi)

The first site is an anime site, that sells DVDs and stuff. The second is a free web-hosting site that is offered to the users of the first site and to registered members of the website hosting section. Its these two sessions that conflict, to destory the other session when another starts is no problem, as long as the session that *should* be starting, starts up fine. Depending on which you go to first the other will give the warnings and errors. Please if anyone can help, I'd greatly appriciate it. Being I've been trying to fix this for a while now.

Many thanks,
Kevin

Last edited by Kaanha; 01-14-04 at 07:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-15-04, 04:13 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
are you passing the session ID in URL ?
because from what I know, you can have the same session info for more than one site by passing the ID in the URL ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-16-04, 11:39 AM
Kaanha Kaanha is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
yes, I did, and it didn't work. I've found out though, its because I'm running my one script as CGI and the other as mod. I'm going to submit a new thread for help on how to get all my PHP to run as CGI.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple class="mainFormBox" - MYSQL dihan PHP 0 01-12-04 04:45 PM
PHP sessions mno PHP 4 11-29-03 04:15 AM
PHP sessions mno HTML/XHTML/XML 3 11-28-03 01:49 PM
PHP & sessions, why won't it work? TinnyFusion PHP 1 10-04-03 02:51 PM
Mail Script sending multiple times when Table has a lot of data dsumpter PHP 12 07-16-03 06:17 PM


All times are GMT -5. The time now is 08:30 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.