473,491 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sessions with register_globals=off

I'm stuck tryin to use my own (db-connected) session-handlers. After
registering them with session_set_save_handler () everything works fine as
long as register_globals is turned on.

After turning register_globals OFF, PHP won't call my write-handler anymore
! Even thogh I am NOT unsing session_register () to register the variables.
I am using $_SESSION['var']="content" to register some values but even that
won't work !

What else do I have 2 do to get this workin ?

Thanks

M. Ziebart
Jul 16 '05 #1
1 2833
Wednesday 27 of August 2003 23:12, Martin Ziebart wrote in comp.lang.php:

After turning register_globals OFF, PHP won't call my write-handler
anymore ! Even thogh I am NOT unsing session_register () to register the
variables. I am using $_SESSION['var']="content" to register some values
but even that won't work !


It might be a silly question, but do you also read the data from the
variable using $_SESSION['var']?

--
Robert Jirik
[mailto:robert(at)aristoteles(dot)xhaven(dot)net]
public PGP key: http://xhaven.net/robert/pgp_key.asc
-
Scandisk is now checking your hard disk. You can start praying

Jul 16 '05 #2

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

Similar topics

6
7186
by: Chewy509 | last post by:
Hi Everyone, I'll just start, and say I am not a PHP developer (I'm a sysadmin, who has gotten lumped with a non-working website). But since I like to do this type of stuff, I though I might...
2
1829
by: Kenton Smith | last post by:
With register_globals=off, is there anyway to use the $HTTP_USER_AGENT and $REMOTE_ADDR variables? I would like to log those variables when people visit my site. Thanks
1
2223
by: Matthias Pospiech | last post by:
I need to access $DOCUMENT_ROOT together with the option register_globals = Off How can I acces the content of $DOCUMENT_ROOT with another variable since it is empty with register_globals = Off ...
2
1830
by: Phil Latio | last post by:
I am newish to PHP and wish to create an authentication system where a new user is required to validate/complete their sign-up by clicking a link in an email. I am probably capable of putting...
17
2873
by: peter | last post by:
I just took over the website at work. I am still learning PHP. Register_globals are on and the script appears to be coded to take advantage of this. I know how to recode the script, but am unsure...
10
25241
by: Kurda Yon | last post by:
Hi, I set the register_globals off and try to get my code working under the new conditions. I stuck on the following problem: Warning: Unknown(): Your script possibly relies on a session side-...
0
7146
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,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6852
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...
0
7356
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...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1389
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 ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
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...

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.