473,394 Members | 1,810 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,394 software developers and data experts.

"Double" PHPSESSID url problem

Hi,
I would like to protect myself against these two PHPSESSID I have sometimes
in the url...
I'm coding a session-based script which will be upload on a shared server. I
can't control if this one will be session_use_trans_id = 0 or 1.

Some users don't accept cookies, so Php can't store the session information
this way, if the session_use_trans_id = 1, it will use the URL, but if it's
disabled the only way to use the url is to manually specify in each link i
have something like "<?echo strip_tags(SID)?>" BUT i have no way to test if
the server is trans_id enabled or not, so if it's the case i have two
PHPSESSID=random_value in the url...

Is there a way for a script to know if the server is session_use_trans_id
enabled or not ? I didn't find any get_trans_id function...

Thanks,
Arnaud
Jul 17 '05 #1
2 2628

"Arnaud" <ex*****@example.com> wrote in message
news:41***********************@news.free.fr...
Hi,
I would like to protect myself against these two PHPSESSID I have sometimes in the url...
I'm coding a session-based script which will be upload on a shared server. I can't control if this one will be session_use_trans_id = 0 or 1.

Some users don't accept cookies, so Php can't store the session information this way, if the session_use_trans_id = 1, it will use the URL, but if it's disabled the only way to use the url is to manually specify in each link i
have something like "<?echo strip_tags(SID)?>" BUT i have no way to test if the server is trans_id enabled or not, so if it's the case i have two
PHPSESSID=random_value in the url...

Is there a way for a script to know if the server is session_use_trans_id
enabled or not ? I didn't find any get_trans_id function...

Thanks,
Arnaud


http://www.php.net/ini_set/
Jul 17 '05 #2
"Chung Leong" <ch***********@hotmail.com> a écrit dans le message de
news:8v********************@comcast.com...
http://www.php.net/ini_set/


I'm afraid session.use_trans_id can't be set that way (php_ini_perdir and
php_ini_system only) but your answer make me use ini_get() and that's
perfect, thanks.

I would be interested by reading other comments about that double PHPSESSID,
how do you manage this thing ? Ini_get too ?

Thanks

Arnaud

Jul 17 '05 #3

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

Similar topics

3
by: Mensan | last post by:
I am trying to compute the differnece between two dwords in visual basic and keep getting the wrong value being computed. I have the following structure defind: Public Type HighLowQuote...
5
by: Piotr B. | last post by:
Hello, I use MingGW g++ 3.2.3 on Windows 2000/AMD Athlon XP. I tried to output a "long double" variable using stdio printf(). I've tried various %formats (%llf, %Lf etc.), but none of them...
22
by: bq | last post by:
Hello, Two questions related to floating point support: What C compilers for the wintel (MS Windows + x86) platform are C99 compliant as far as <math.h> and <tgmath.h> are concerned? What...
4
by: michi | last post by:
Hello How can I convert a string to double with a decimal point as seperator? ***CODE**** strNumber ="12.00" dblDouble = Cdbl(strNumber) ****
12
by: Zero | last post by:
Hi everybody, i want to write a small program, which shows me the biggest and smallest number in dependance of the data type. For int the command could be: ...
2
by: anon.asdf | last post by:
Hi! Q. 1) How does one write: sizeof(array of 5 "pointers to double") ??? I know that sizeof(pointer to an array of 5 doubles) can be written as: sizeof(double (*));
19
by: glchin | last post by:
Does a compiler guarantee that the variable w below is placed on an eight-byte aligned address? void myFunction( long iFreq ) { const double w = two_pi * iFreq; ... ... }
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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
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...

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.