473,394 Members | 1,841 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,394 software developers and data experts.

pass PHPSESSID in FORM-tag

Hello ,

I want to pass some $_SESSION data to another page.

I can pass PHPSESSID along using echo '<br /><a href="page2.php?' . SID
.. '">page 2</a>';

However, I want to fill in a table with values and include PHPSESSID
with it. This does not work. I tried somethink like this:
<INPUT TYPE="Hidden" NAME="PHPSESSID" VALUE="<?=SID ?>">

and on the next page 'retrieve' the SID
$SID=$_POST["PHPSESSID"];

Now probably SID is not a normal variable , but how to get this right?

How is a call like http://page2.php?PHPSESSID=42ed32d .. processed , is
there a variabele PHPSESSID or a variabele SID that is being used?
Jul 17 '05 #1
3 7297
edward hage <ed**@xs4all.nl> wrote in message news:<3f*********************@news.xs4all.nl>...
Hello ,

I want to pass some $_SESSION data to another page.

I can pass PHPSESSID along using echo '<br /><a href="page2.php?' . SID
. '">page 2</a>';

However, I want to fill in a table with values and include PHPSESSID
with it. This does not work. I tried somethink like this:
<INPUT TYPE="Hidden" NAME="PHPSESSID" VALUE="<?=SID ?>">

and on the next page 'retrieve' the SID
$SID=$_POST["PHPSESSID"];

Now probably SID is not a normal variable , but how to get this right?

How is a call like http://page2.php?PHPSESSID=42ed32d .. processed , is
there a variabele PHPSESSID or a variabele SID that is being used?


http://in2.php.net/manual/en/install...able-trans-sid

http://in2.php.net/session See session.use_trans_sid

--
"There are two kinds of people, those who do the work and those who
take the credit. Try to be in the first group; there is less
competition there." -- Indira Gandhi
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2
R. Rajesh Jeba Anbiah wrote:
edward hage <ed**@xs4all.nl> wrote in message news:<3f*********************@news.xs4all.nl>...
Hello ,

I want to pass some $_SESSION data to another page.

I can pass PHPSESSID along using echo '<br /><a href="page2.php?' . SID
. '">page 2</a>';

However, I want to fill in a table with values and include PHPSESSID
with it. This does not work. I tried somethink like this:
<INPUT TYPE="Hidden" NAME="PHPSESSID" VALUE="<?=SID ?>">

and on the next page 'retrieve' the SID
$SID=$_POST["PHPSESSID"];

Now probably SID is not a normal variable , but how to get this right?

How is a call like http://page2.php?PHPSESSID=42ed32d .. processed , is
there a variabele PHPSESSID or a variabele SID that is being used?

http://in2.php.net/manual/en/install...able-trans-sid

http://in2.php.net/session See session.use_trans_sid


I already read that page but it doesn't say anything about passing SID
in a frame.

I am using PHP 4.3.1 so the --enable-trans-sid is already enabled.Thanks.
Jul 17 '05 #3
edward hage wrote:
R. Rajesh Jeba Anbiah wrote:
edward hage <ed**@xs4all.nl> wrote in message
news:<3f*********************@news.xs4all.nl>...
Hello ,

I want to pass some $_SESSION data to another page.

I can pass PHPSESSID along using echo '<br /><a href="page2.php?' . SID
. '">page 2</a>';

However, I want to fill in a table with values and include PHPSESSID
with it. This does not work. I tried somethink like this:
<INPUT TYPE="Hidden" NAME="PHPSESSID" VALUE="<?=SID ?>">

and on the next page 'retrieve' the SID
$SID=$_POST["PHPSESSID"];

Now probably SID is not a normal variable , but how to get this right?

How is a call like http://page2.php?PHPSESSID=42ed32d .. processed , is
there a variabele PHPSESSID or a variabele SID that is being used?



http://in2.php.net/manual/en/install...able-trans-sid
http://in2.php.net/session See session.use_trans_sid

I already read that page but it doesn't say anything about passing SID
in a frame.

I am using PHP 4.3.1 so the --enable-trans-sid is already enabled.Thanks.

Found out answer for who is interested. Kind of straightforward to use
session-data in next page by using FORM ACTION = "wisme2.php?<?=SID ?> "

This may be usefull for somebody.

<?php
session_start();
$_SESSION['data1']= 1 ;
$_SESSION['data2']='hello';
?>
<FORM ACTION="wisme2.php?<?=SID ?> " METHOD=POST>
<INPUT TYPE="SUBMIT" VALUE="Verder">
</FORM>

Jul 17 '05 #4

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

Similar topics

8
by: JohnS | last post by:
Hi, When I initially start my browser (any of 'm) and point it to my PHP script the $PHPSESSID is always blank. On all subsequent hits or after a refresh the value for $PHPSESSID is fine... why...
4
by: Arnaud | last post by:
Hi ! I would like to propagate data between php pages, in two cases : the pages are read by : 1- Internet Explorer It's ok, data are writen in one page, and read from another. I don't use...
0
by: Alex Shi | last post by:
Hi, I don't know how php process its session. I just noticed that for the first time a web site is loaded php will insert a PHPSESSID through out the page: it attach this id to links, insert...
3
by: Quinonez | last post by:
how can i get the PHPSESSID to not show on the results of a form i have created?
2
by: frizzle | last post by:
Hi there I have a site in which all pages ARE php-pages, but they're called/manipulated with htaccess. All files appear as a html-file to surfers. Sometimes i get the PHPSESSID declared in the...
0
by: John Smith | last post by:
Googlebot has been picking up numerous PHPSESSID name/value pairs in URIs at my website, and this causes duplicate hits and wasted bandwidth. I've since prevented PHPSESSID generation in my PHP...
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
29
by: CAH | last post by:
Hi Can you avoid that googlebot indexes PHPSESSID pages? Googlebot is indexing pages with PHPSESSID, which makes it think my page has a infinite number of pages. How can one avoid this? ...
1
by: Leszek | last post by:
Hi. How should I configure Apache2.2 with php5 so that PHPSESSID would be sent as a cookie ? Now I'm not getting any messages even if I set IE to ask about incoming cookies... So what is the...
1
by: zorro | last post by:
Greetings, I want users to select the duration time of their sessions. I'm able to do it by setting the PHPSESSID cookie duration. Is this reliable, or is it not recommended for some reason? ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.