Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-23-2007, 02:49 PM   PM User | #1
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
SESSION Within A Frame

Hi all... I am working on a site that has been set up using frames, basically the top frame holds some menu items and a 'close window' button, this obviously does as the name suggests... Unfortunately a few issues. When I log in in the bottom frame the top frame log out button doesn't display, UNTIL I refresh the whole window... Anyone know how I can make this refresh both frames when the user logs in?

PHP Code:
<?php session_start(); ?>

<?php
        
if ($_SESSION['blnUserLoggedIn'] == true)
        {
        
?>
        <a href="logout.php" onMouseOver="MM_swapImage('Image222','','images/log_out_1.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/log_out_0.gif" name="Image222" width="46" height="17" border="0" id="Image222">        </a>
        <?
        
}
        else
        {
        
?>
        <a href="javascript:top.window.close()" onMouseOver="MM_swapImage('Image1','','images/close_window_on.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/close_window_off.gif" name="Image1" width="94" height="17" border="0" id="Image1">        </a>
        <? 
        

        
?>
tomyknoker is offline   Reply With Quote
Old 07-23-2007, 05:32 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
I'm thinking of something more in the lines of Javascripting.

I assume you're working on an existing site that uses frames and
you're sort of stuck with it ... can you talk them out of using frames?

With PHP ... and no frames, you can control the navigation menus and
content within <div>'s ... this would make the whole site more integrated.
mlseim is offline   Reply With Quote
Old 07-23-2007, 11:22 PM   PM User | #3
aedrin
Senior Coder

 
Join Date: Jan 2007
Posts: 1,648
Thanks: 1
Thanked 58 Times in 54 Posts
aedrin will become famous soon enough
Quote:
I assume you're working on an existing site that uses frames and
you're sort of stuck with it ... can you talk them out of using frames?
There are situations where using frames makes more sense than a fixed page.
aedrin is offline   Reply With Quote
Old 07-23-2007, 11:53 PM   PM User | #4
tomyknoker
Regular Coder

 
Join Date: Mar 2006
Posts: 459
Thanks: 3
Thanked 0 Times in 0 Posts
tomyknoker is an unknown quantity at this point
Not really as it's a huge site so don't really want to have to change it all as well... Should I post in the JavaScript forum? Or can a mod move this post?
tomyknoker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 PM.


Advertisement
Log in to turn off these ads.