Solved

session variable value lost during folder change

Posted on 2004-09-15
6
230 Views
Last Modified: 2006-11-17
Hello

I have a site that uses session variables to determine what is displayed to diffrent users according to rights, it works fine in the root directory but as soon as i move asp pages in  folder it no longers seems to accessing the session variables.

Has any one got any ideas why this is and how i can solve the problem

Thanks
0
Comment
Question by:csbhatt1
6 Comments
 
LVL 2

Expert Comment

by:hint
ID: 12063205
hi,

  just a guess:

1. you might want to check if the browser has cookies enabled.
2. you might want to check if you pages hardcode some cookie locations, or the cookies are created in one folder then access in another.

Cheers,
Zhen
0
 
LVL 2

Expert Comment

by:benbalbo
ID: 12063370
The only thing that springs to mind is - are you including another script that starts the session? Is this script still being correctly included when you move the files into a folder?

If you include "includes/session.asp" then from one folder this will work, but from the other folder you'd need to include "../includes/session.asp"
0
 
LVL 15

Expert Comment

by:joeposter649
ID: 12065703
Are the other directories set up in the same application?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:csbhatt1
ID: 12071961
Yes there are other directories in the same www folder. One thing is strange that it is working for some folders and not for other. i.e.when  i put  the asp page which is using session variables  in one folder the session values are retained and getting displayed correctly while  when I put it another folder the same values are not getting displayed.

0
 
LVL 15

Expert Comment

by:joeposter649
ID: 12074283
Use server.transfer instead of redirect...
http://devguru.com/Technologies/asp/quickref/server_transfer.html
0
 
LVL 15

Accepted Solution

by:
joeposter649 earned 125 total points
ID: 12074301
Sorry, wrong question..

Make sure the directory isn't set up as another application in IIS.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question