Please Read following Article:
http://www.knowlegezone.co
Main Topics
Browse All TopicsHi,
I need to pass session variable from .aspx page to .asp.
I can't use query string or cookies,i need session variable only.
Please can you say me how to do this.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Please Read following Article:
http://www.knowlegezone.co
sounds good, but remember the original question: the OP doesn't seem to want any of this sensitive data passed on through to the client's browser. Which is why I suggested to use the same method you propose, but then entirely on the server, hidden from browser requests.
but those are just my thoughts. I'd be interested in what the thoughts of the op are on the subject :)
Sorry, but you shouldn't delete questions that have a constructive discussion thread, which actually show you a solution to your original problem. If you have chosen a different path, that's good, but the solutions are still viable for others having the same problem. Please read closing a question if you have problems understanding the closing process.
My suggestion: split points between me (comment #24172591) and adilkhan (comment #24174028), both gear towards a solution to the original problem.
Business Accounts
Answer for Membership
by: abelPosted on 2009-04-17 at 15:59:39ID: 24172591
you cannot pass the whole session, of course. If you just want to pass a session variable, and you do not want to use a query string nor cookies, you have already ruled out the most important methods of passing on information.
Instead of the querystring you can use POST information and use an input type hidden for your data. But this still passes by the client side, of course, which I assume you do not want.
Other alternatives require more work:
- Store the sessions in a database. You can configure this in IIS for sessions and you can access the database through ASP using the normal way you access databases. Then just pass the token in a hidden field and you should be fine
- Create a simple interface, only accessible from server-to-server (not from client) and use the XmlHttpRequest object in ASP to access the interface you defined. This is more work, but you have the most control.
-- Abel --