473,549 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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********@wana doo.fr)
Jul 17 '05 #1
4 8232
jn
"Arnaud" <gr********@wan adoo.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********@wana doo.fr)


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

session_id($_GE T['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********@wan adoo.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.r r.com> a écrit dans le message de
news:6T******** *************@t wister.tampabay .rr.com...
"Arnaud" <gr********@wan adoo.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********@wana doo.fr)


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

session_id($_GE T['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*********@ca ns.co.nz> a écrit dans le message de
news:1e******** *************** *********@4ax.c om...
Hi Arnaud!

On Mon, 27 Oct 2003 18:47:58 +0100, "Arnaud" <gr********@wan adoo.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
7771
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: ---------------------------------------------------------------------------- <?php ini_set("session.use_cookies", "off"); ini_set("session.use_trans_sid", "on"); session_start(); $_SESSION = ""; $_SESSION =...
13
23283
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 The problem I am having is that each time I reload the same PHP page, I get
1
4362
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 log in each time they come to the site. In a .htaccess file I set session.cookie_lifetime to 20736000 seconds and I set session.gc_maxlifetime to...
7
14516
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 clients having different levels of cookie security settings. i assumed a solution would be to have the php site use the session only, and set...
0
3210
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 documentation it seems it should do it anyway any advice?
2
14678
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 third page program needs to retrive information that were written to the session and use them. Problem is that when I call the third page and call...
10
29877
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 information to the PHP page and then loads the result, all in the background. Right now, the php page cannot access the $_SESSION. Is there anyway...
4
2861
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 session seems to be re-created and is an empty array. I have checked the session file and the variable is being stored against the session id, but...
8
3019
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, successfully authenticating against Active Directory, I send them from the login.php page to the index.php page. But when I get to the index.php page, the...
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.