Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2003, 09:13 AM
Authorized User
 
Join Date: Jun 2003
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default i loose my session when switching from "sitename"

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
 
Old July 31st, 2003, 02:49 AM
Authorized User
 
Join Date: Jun 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to use virtual paths :

Code:
<a href="/page.asp">
The first slash represent your site root.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching TableAdapters striker9 ASP.NET 2.0 Basics 3 March 29th, 2006 11:11 AM
Toolbar switching / dynamic population yamyam .NET Framework 1.x 0 February 14th, 2006 08:15 AM
Problems with printer switching Sara Access VBA 0 December 20th, 2004 07:29 AM
Wizard Interface - switching between forms edwardforgacs C# 1 September 7th, 2003 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.