473,378 Members | 1,436 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,378 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 7295
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.