467,160 Members | 1,007 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,160 developers. It's quick & easy.

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
  • viewed: 7627
Share:
4 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Paul | last post: by
1 post views Thread by mudge | last post: by
7 posts views Thread by ehendrikd@gmail.com | last post: by
reply views Thread by joseph conrad | last post: by
2 posts views Thread by lookee | last post: by
10 posts views Thread by Steve Cook | last post: by
4 posts views Thread by rgparkins@hotmail.com | last post: by
8 posts views Thread by Eddie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.