Click here to Skip to main content
12,290,522 members (53,563 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
Hi,

I need a Login system without creating cookies and sessions.Actually i had developed a website that need login for user. I had developed it using authentication ,authorization and i had also created sessions. Is there any alternate without using authentication ,authorization,cookies and session.
Can anyone help.
Posted 22-Feb-13 22:23pm
Comments
CShubham 23-Feb-13 5:09am
   
what you want clear your query !!!

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Well, yes, you can...but I would strongly advise against it.
Cookies and Sessions hide info from teh user as well as passing it from page to page. If you don't use either of them, then there is no method to pass data except to use the QueryString which can be appended to the HTTP address of teh page - you've seen them with google links as so forth, I suspect:
https://www.google.co.uk/search?q=QueryString&oq=QueryString&sourceid=chrome&ie=UTF-8
gives the page id:
https://www.google.co.uk/search
followed by a question mark, then a set of parameters joined with ampersand characters:
q=QueryString
oq=QueryString
sourceid=chrome
ie=UTF-8
You can use a similar mechanism yourself, but it does have a fairly high security cost: it is easy to access, copy and paste so it is easy for a fake user to work with. In addition, you have to keep checking if the user info presented is actually valid and genuine every time you load a page to prevent spoofing.

On the whole, I'd stick with session / cookies and the .NET Membership system. It's a lot easier, and more secure that rolling your own from query strings!
  Permalink  
Comments
Kishor Deshpande 23-Feb-13 14:21pm
   
My 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100