Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is cookie less session? How it works?

Answer Posted / shalini

If cookies is not supported then cookieless sessions is
the best option. If you set the cookieless attribute of the
sessionState element to "true" in your web.config, you will
notice that sessions still work perfectly when invoking
your Web methods using the browser interface.Code for using
cookiless session is:(.aspx code)

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='/HttpSessionState/
(l2z3psnhh2cf1oahmai44p21)/service1.asmx'>here</a>.</h2>
</body></html>

Code for using cookiless session is:(aspx.cs code)

[WebMethod(EnableSession=true)]
public bool Login(string user, string pwd)
{
Session["extuser"] = user;
return true;
}

[WebMethod(EnableSession=true)]
public String getUser()
{
return Session["extuser"].ToString();
}

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define satellite assemblies.

1056


What is web api vs wcf?

1020


In order to get assembly info which namespace we should import?

999


Explain code snippet to register exception filters from controller?

1016


What are the advantages of Web API?

1115


How does u get record no from 5 to 15 from a dataset of 100 records?

953


What is mta?

1047


What is razor? : asp.net mvc

1041


Tell me the code snippet to show how we can return 404 errors from HttpError?

1281


What is the flow of processing of the request? : asp.net mvc

1032


Explain the concept of View Model in MVC?

1022


What is the difference between asp.net and mvc?

1120


What is difference between web config and global asax?

869


What is content place holder?

967


What are validator? Name the validation controls in asp.net? How do you disable them?

1040