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

In which event are the controls fully loaded?

1007


Which is the parent class of the web server control?

1076


Explain the difference between dataset and datareader.

1022


Define tracing.

1125


What are sessions and cookies?

975


How Session use Cookies in State Management?

1075


Can asp.net work on an nt server?

1047


What are uri parameters?

1051


How do you secure your configuration files to be accessed remotely by unauthorized users?

1122


Differentiate between a page theme and a global theme?

970


What are the asp.net list controls and difference between them?

1031


What is the difference between union and join?

1174


What are the features of asp net?

984


Explain how to prepare culture-specific formatting in .net.

978


Why web api is better than wcf?

1113