Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

session variable value lost during folder change

Posted on 2004-09-15
6
Medium Priority
?
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 375 total points
ID: 12074301
Sorry, wrong question..

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

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

719 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