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 latest version of asp.net mvc? : Asp.Net MVC

481


How many types of validators are there in asp net?

503


Do you know caching feature?

571


How to prevent client side validation from the ASP.NET validation controls?

581


What does postback mean?

540






Explain diff. Between friend and protected friend?

502


What is a web based system?

466


What is the difference between cookie and session?

504


Define application state variable and session state variable?

558


What is autopostback in asp net?

593


1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????

18542


What are session objects?

516


What is session authentication?

536


What is the difference between c# and .net?

585


What is the use of global.asax file?

555