|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
i loose my session when switching from "sitename" to "site-ipnumber"
Hi,
when somebody enters my webpage i save the userid in a session variable. They can access my webpage at 2 ways. They can access it by typing the ipnumber or the name of the site in the browsers' addressbar. either way the sessionvariable will be filled with the userid. But the problem is that i used a few absolute paths in my site. With those paths i always used this format: "ipnumber/page.asp". When a user enters my site by typing the name in de browser the session value is set (i checked this!). But when i redirect somewhere on my site to "ipnumber/page.asp" this value is lost. Is there some way to solve this problem? cause i thought it wouldn't make any difference if you access a site by it's ipnumber or by it's name because the server treats both the same...or is this assumption incorrect? any help is appreciated! Harold |
|
#2
|
||||
|
||||
|
try using cookies.
|
|
#3
|
||||
|
||||
|
Quote:
If it's not a security issue for you, move the session ID to the URL instead.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#4
|
|||
|
|||
|
Quote:
security is the main issue cause i'm developing it for a jail anybody another suggestion in stead of moving the session id to the url? |
|
#5
|
||||
|
||||
|
It might be possible for you to set two cookies, one for the domain and one for the IP by specifically using these in the setcookie() function.
If you could create a subdomain that pointed to the other IP address then you could set the cookie to work accross the main domain and all sub domains. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > i loose my session when switching from "sitename" to "site-ipnumber" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|