Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sessions and Framsets...doesn't work in PHP

Status
Not open for further replies.

RicoCali

Programmer
Joined
Dec 7, 2002
Messages
80
Location
US
When using sessions (session_start();) in PHP contained in:

<FRAMESET ROWS=&quot;100%,*&quot;>
<FRAME SRC=&quot; <FRAME SRC=&quot;blank.html&quot;>
</FRAMESET>

Once the link is routed to index.php the sessions cease to function. Is there a way around this?
 
start the session in your frameset perhaps
(or make the frameset the index.php and start with the page you want to start with in your frameset)
 
Actually yes...the original URL is something like:


The index.html file looks like:

<FRAMESET ROWS=&quot;100%,*&quot;>
<FRAME SRC=&quot; <FRAME SRC=&quot;blank.html&quot;>
</FRAMESET>

I reference the other domain as an IP. The reference to the other domain (123.123.123.123)uses index.php which uses session_start(). When I do session_register() it doesn't pick it up from all the other pages. The sessions do work if I don't use this paradigmn.

Thanks for the reply,
Rico
 
Again, sessions use cookies, and cookies are specific to a single domain. Unless all the frames of your frameset are referenced, by name, as being part of the same domain name in the URL, the cookies won't work and neither will the sessions.

You could try configuring PHP to sent sessions via tag-editing.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top