ravindra333
asked on
how to pass session variable from .aspx page to .asp (classic asp) page
Hi,
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.
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.
.aspx:-
---------
Session["Login"]="Had Value";
asp:-
-------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@adilkhan: that is from Classic ASP to ASP.NET. The original poster wants it the other way around: from his ASPX (i.e. ASP.NET) page to Classic ASP....
Well then he can do other way around. ASPX page submits to a hidden Page, Populate Hidden Fields & Then Submit that form to a ASP Page, and repopulate the Session.
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 :)
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.
My suggestion: split points between me (comment #24172591) and adilkhan (comment #24174028), both gear towards a solution to the original problem.
Agreed with abel.