473,782 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Sessions with Frames support???

I am wondering if I can use sessions in a site that utilizes frames? There
is a "header", "footer","navig ation_page" and "main" frame, they are the
names of the frames and they are a typical 4 frame display. The main page is
called index.php and all of the named frames have matching file names with a
..php extension, running apache2triad1.1 .9. I am trying to create a secure
site for viewing a private user database management system for orders.
Eventually it will have Paypal integration I am hoping. Thanks, please mail
me at AB**********@co x.net, Please if possible send a small example as I am
only a beginner with php. but know asp and (x,d)html like my palm of my
hand.
Jul 17 '05 #1
1 1847
Rick Langschultz wrote:
I am wondering if I can use sessions in a site that utilizes frames? There
is a "header", "footer","navig ation_page" and "main" frame, they are the
names of the frames and they are a typical 4 frame display. The main page is
called index.php and all of the named frames have matching file names with a
.php extension ...


<?php // index.php
session_start() ;
$_SESSION['test'] = 'test session';
echo <<<HTML
<!-- frameset here -->
HTML;
?>
<?php // header.php
session_start() ;
echo <<<HTML
<!-- header here -->
<!-- see page source im browser -->
<!-- {$_SESSION['test']} -->
HTML;
?>
Same thing for the other frames.
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7544
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere including the php.net manual. In the manual it said to include something like the following:
5
1259
by: Michael Satterwhite | last post by:
PHP 4.3.4 is distributed with SuSE 9.1. Session support is supposed to be default in PHP 4+ ... but In a script I'm writing, my page starts with the lines <?php session_start(); $_SESSION = 0; ?> ......
6
8550
by: BWGames | last post by:
Hey all, I have a website, which uses frames (I know, I know...). Left frame is a navbar, with the main content in the right frame. I can login using sessions on the right frame, giving "Thankyou, $name (where $session(name) = $name etc - not got code available atm, so thats not exactly right, but you get the gist...) I use <body onLoad parent.leftframe etc to reload the left frame, which
3
2451
by: Jan Ebbe Jensen | last post by:
Hi I have tried the following code. It works in Mozilla. In IE I'm not able to enable DesignMode? What have I done wrong? It says that obj is undefined? Can anyone help me please.
1
1157
by: Christopher | last post by:
Hello, I currently use session variables to store some basic values on an intranet site internally. However, sometimes those session values do not come through and other time sthey do yet the application keeps running seemingly eventhough pages catch for session-ending. Our intranet site has 4 frames running all the time. When a user signs into the site on one main page (no frames) the session is populated. When the 4 frames load up, are the...
6
3807
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for one day): \\FFDS24\ASP.NET Applications(_LM_W3SVC_1_Root_ATV2004)\Errors During Execution: 7 \\FFDS24\ASP.NET Apps v1.1.4322(_LM_W3SVC_1_Root_ATV2004)\Compilations
3
2423
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
4
3362
by: news | last post by:
We have a huge PHP e-commerce site that relies totally on PHP sessions and cookies. We need to create a demo version of the site for potential clients to use that does NOT show the original URL in the browser, but we can't just simply copy the site and database over to to a new URL. My first thought was to set up a site at the new URL and then include the PHP site in a frame... but the PHP sessions prevent us from doing this.
1
1271
by: chowdary | last post by:
hi, iam using frames in my website, there are 2 frames in site. when sessions are expired the login page is displaying in the main frame, but the other frame as it is in above. why the above frame is not disappearing? is it means sessions are not expired in the above frame????? please help me that the login page has to be displayed in a new page............
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.