473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

PHP Sessions with Frames support???

I am wondering if I can use sessions in a site that utilizes frames? There
is a "header", "footer","navigation_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**********@cox.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 1826
Rick Langschultz wrote:
I am wondering if I can use sessions in a site that utilizes frames? There
is a "header", "footer","navigation_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
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...
5
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 =...
6
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...
3
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
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...
6
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...
3
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
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.