472,995 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

session and PHPSESSID with mobile browser

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
PHPSESSID

2- from a mobile browser ( mobile i-Mode phone Nec22)
After several tests, I understod it's impossible, because the session system
tries to write a cookie on the browser...

So, I try passing PHPSESSID through the link to the next page. OK, the
PHPSESSID can be read from the reached page. But, how do I read the other
data written in the session variables ? What must be the order of the
functions to retrieve my data ?

Thanks for your ansvers, I am quite newbie with PHP.
Arnaud
(response mail : remove the dash from gr********@wanadoo.fr)
Jul 17 '05 #1
4 8156
jn
"Arnaud" <gr********@wanadoo.fr> wrote in message
news:bn**********@news-reader3.wanadoo.fr...
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
PHPSESSID

2- from a mobile browser ( mobile i-Mode phone Nec22)
After several tests, I understod it's impossible, because the session system tries to write a cookie on the browser...

So, I try passing PHPSESSID through the link to the next page. OK, the
PHPSESSID can be read from the reached page. But, how do I read the other
data written in the session variables ? What must be the order of the
functions to retrieve my data ?

Thanks for your ansvers, I am quite newbie with PHP.
Arnaud
(response mail : remove the dash from gr********@wanadoo.fr)


You have to set the session id on the next page before you call your
session.

session_id($_GET['PHPSESSID']);
session_start();
//you should now be able to access your session variables
echo $_SESSION['mysessionvar'];
Jul 17 '05 #2
Hi Arnaud!

On Mon, 27 Oct 2003 18:47:58 +0100, "Arnaud" <gr********@wanadoo.fr>
wrote:
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
PHPSESSID

2- from a mobile browser ( mobile i-Mode phone Nec22)
After several tests, I understod it's impossible, because the session system
tries to write a cookie on the browser...

So, I try passing PHPSESSID through the link to the next page. OK, the
PHPSESSID can be read from the reached page. But, how do I read the other
data written in the session variables ? What must be the order of the
functions to retrieve my data ?


Check your php.ini, the URL parameter is SID with my installation. If
you transport that and call session_start() on each page, everything
is in $_SESSION

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #3
Thanks a lot !
Arnaud.

"jn" <js******@cfl.rr.com> a écrit dans le message de
news:6T*********************@twister.tampabay.rr.c om...
"Arnaud" <gr********@wanadoo.fr> wrote in message
news:bn**********@news-reader3.wanadoo.fr...
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
PHPSESSID

2- from a mobile browser ( mobile i-Mode phone Nec22)
After several tests, I understod it's impossible, because the session

system
tries to write a cookie on the browser...

So, I try passing PHPSESSID through the link to the next page. OK, the
PHPSESSID can be read from the reached page. But, how do I read the other data written in the session variables ? What must be the order of the
functions to retrieve my data ?

Thanks for your ansvers, I am quite newbie with PHP.
Arnaud
(response mail : remove the dash from gr********@wanadoo.fr)


You have to set the session id on the next page before you call your
session.

session_id($_GET['PHPSESSID']);
session_start();
//you should now be able to access your session variables
echo $_SESSION['mysessionvar'];

Jul 17 '05 #4
Thanks a lot !
Arnaud.

"Jochen Daum" <jo*********@cans.co.nz> a écrit dans le message de
news:1e********************************@4ax.com...
Hi Arnaud!

On Mon, 27 Oct 2003 18:47:58 +0100, "Arnaud" <gr********@wanadoo.fr>
wrote:
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
PHPSESSID

2- from a mobile browser ( mobile i-Mode phone Nec22)
After several tests, I understod it's impossible, because the session systemtries to write a cookie on the browser...

So, I try passing PHPSESSID through the link to the next page. OK, the
PHPSESSID can be read from the reached page. But, how do I read the other
data written in the session variables ? What must be the order of the
functions to retrieve my data ?


Check your php.ini, the URL parameter is SID with my installation. If
you transport that and call session_start() on each page, everything
is in $_SESSION

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/

Jul 17 '05 #5

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
13
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 ...
1
by: mudge | last post by:
I'm running PHP Version 4.3.10. I'm trying to make it so that when a person logs in using a user name and password that their session is valid and continues for a few months so they don't have to...
7
by: ehendrikd | last post by:
hi all i need some clarification on how the php session work in relation to cookies. we have a web site where users need to log in. a few of our users were having troubles with their browser...
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...
2
by: lookee | last post by:
Hello all, I have simple PHP application that on one page strarts session and write some information to it. On another page program tryes to fetch information from a third page using cURL. On that...
10
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
4
by: rgparkins | last post by:
Hello I am running out of time with a problem I have running PHP 5.04 and Apache 2.0 and really need help :(. I have a page that stores a variable in session but each time I reload that page the...
8
by: Eddie | last post by:
I am having difficulty in setting variables in a session, and then accessing those variables throughout the web pages that they click on. After having them set a user name and password,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.