Can session variables be accessed from code-behind?

Answer Posted / gggg

" YES "

simply take 2 websites

for example in 1st website..... u have a textbox1

on page load()
--------------
Session["name"]=textBox1.Text;

in 2nd website..........

on page load()
-------------

Response.Write(Session["name"]);



definatly u will get the ans ,, whatever u entering in the
textbox1 in 1st website that will displat in 2nd website

Is This Answer Correct ?    12 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session and application variable in asp net?

452


What is the difference between web config and machine config files?

546


What is server transfer?

489


When should I use server transfer and response redirect?

504


What is app_code folder in asp net?

525






Explain what is event bubbling?

566


What is in a session cookie?

532


What is authorization in asp.net?

567


What is asp.net master page?

551


What is Cookies Less Session?

606


How to use push notification?

594


How u refer webservices?

1484


How can you register a custom server control to a web page?

540


Why is xap important?

591


Where is asp.net view state stored?

506