473,511 Members | 16,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session_name

Hi

Is is possible to set the session_name using a defined constant?

For example

session_name(UNIQUE_NAME);

where UNIQUE_NAME is defined in another file

define('UNIQUE_NAME', 'MRKLB');

Jul 17 '05 #1
4 1828
bi*******@gmail.com wrote:
Is is possible to set the session_name using a defined constant?

For example

session_name(UNIQUE_NAME);

where UNIQUE_NAME is defined in another file

define('UNIQUE_NAME', 'MRKLB');


Did you try?

<yoda>
Do or do not. There is no try
</yoda>

So I guess you did the above and failed?

Jul 17 '05 #2
Why would I not listen to starwars wisdom?

Of course I tried and it didn't work

Jul 17 '05 #3
bi*******@gmail.com wrote:
Why would I not listen to starwars wisdom?

Of course I tried and it didn't work


How comes it works for me then?
http://tmp.tryba.nl/sessname.php(s)

Jul 17 '05 #4
I believe you have to set the session id before any html is output on
the page (following the same rules as cookies).

Jul 17 '05 #5

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

Similar topics

2
2565
by: Darrell Blake | last post by:
I'm trying to use sessions to allow people to log into my site. The problem is that sometimes it works and sometimes it doesn't! As far as I'm aware my script is fine (hence why it works sometimes)...
0
4011
by: Darrell Blake | last post by:
I'm trying to use sessions to allow people to log into my site. The problem is that sometimes it works and sometimes it doesn't! As far as I'm aware my script is fine (hence why it works sometimes)...
4
31163
by: john | last post by:
How do u guys handle multiple sessions?? i.e, opening different browser windows by running iexplore.exe or clicking IE icons and opening the application. My sessions are mixing up. what i mean is...
2
3528
by: Ken | last post by:
How do I carry Session variables between secure website (https) to unsecured website(http)? Ken
21
3030
by: axlq | last post by:
Someone please tell me if I've discovered a PHP bug. I'm sitting in front of several computers on my home network, behind a NAT firewall/router. I am testing my web site on these different...
25
3294
by: crescent_au | last post by:
Hi all, I've written a login/logout code. It does what it's supposed to do but the problem is when I logout and press browser's back button (in Firefox), I get to the last login page. In IE,...
5
4004
by: manny6677 | last post by:
Trying a simple test of passing $_SESSION variables between two php pages. I don't see any data on the second page and the session id that is printed out is not the same as the first page session id...
5
3077
by: salmankamkoriwala | last post by:
Default Working with Sessions in Multi Tab Browsers - PHP Hi, I am working on the php project and been stuck on Managing Session in Multiple tabs. My Problem is --- When i open a page in...
2
1394
by: sheldonlg | last post by:
I wanted to see if absolute or relative URLs had anything at all to do with the session variable information being lost. So, I wrote a simple test program. It is at...
0
7242
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,...
0
7353
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
7418
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
7075
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
7508
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...
1
5063
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...
0
4737
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
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
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 ...

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.