473,545 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alternatives when user's browser doesn't accept cookies

If you have per user information that you want to store in session and the
setting in web.config is set to cookieless=fals e so you are intending on
using cookies, the user's browser is set to not accept cookies, what can you
do as alternative for storing that data?

What is the tradeoff if you just set the cookieless=true ?

I am just trying to determine a set of best practices for this on my
project.

Thanks in advance,

--
Bob Hanson
CEO
Custom Programming Unlimited LLC
Nov 17 '05 #1
2 6036
If you have cookieless=true , then sessionID will be concatenated to every
URL string so that it is automatically passed around to each page. As a
developer this will be seemless to you and the session stuff will just work.
The only real drawback is the ugly sessionID that will appear in the address
bar of the user's browser.
This is the only reasonably simple way to keep track of the user's session
if they have cookies turned off.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Robert V. Hanson" <ro*****@cpuand simplepdm.com> wrote in message
news:vg******** ****@corp.super news.com...
If you have per user information that you want to store in session and the
setting in web.config is set to cookieless=fals e so you are intending on
using cookies, the user's browser is set to not accept cookies, what can you do as alternative for storing that data?

What is the tradeoff if you just set the cookieless=true ?

I am just trying to determine a set of best practices for this on my
project.

Thanks in advance,

--
Bob Hanson
CEO
Custom Programming Unlimited LLC

Nov 17 '05 #2
Hello Robert,

I think your question is: How to store asp state information without
cookies information.

Generall speaking, the most common options to preserve state are as
follows:
Session and Application Variables
Cookies
Hidden Form Fields
QueryString
File and Database

I recommend you read one good MSDN article on it:
"HOWTO: Store State in Active Server Pages Applications"
http://support.microsoft.com/default...;EN-US;Q175167

Hope it helps.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
--------------------
!From: "Robert V. Hanson" <ro*****@cpuand simplepdm.com>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!Subject: Alternatives when user's browser doesn't accept cookies
!Date: Wed, 2 Jul 2003 11:36:41 -0500
!Organization: Posted via Supernews, http://www.supernews.com
!Message-ID: <vg************ @corp.supernews .com>
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!X-Complaints-To: ab***@supernews .com
!Lines: 18
!Path:
cpmsftngxa09.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!cy clone.bc.net!sj c70.we
busenet.com!new s.webusenet.com !sn-xit-02!sn-xit-06!sn-post-01!supernews.co m!
corp.supernews. com!not-for-mail
!Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:3177 7
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!If you have per user information that you want to store in session and the
!setting in web.config is set to cookieless=fals e so you are intending on
!using cookies, the user's browser is set to not accept cookies, what can
you
!do as alternative for storing that data?
!
!What is the tradeoff if you just set the cookieless=true ?
!
!I am just trying to determine a set of best practices for this on my
!project.
!
!Thanks in advance,
!
!--
!Bob Hanson
!CEO
!Custom Programming Unlimited LLC
!
!
!

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
4916
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with...
2
2433
by: Lee Wilkie | last post by:
Dear All, I'm new to ASP.NET and have been developing a small app at work to test Forms Authentication. When running on my development machine (using http://localhost/TestApp/Login.aspx for example) everything works fine - that is, a successful (authenticated) login grants access to other app pages and the authorization cookie is saved as...
1
1243
by: Scott Collens | last post by:
I am hoping someone can shed some light on this issue. I am developing a site in .NET using VB.NET on Windows 2000 Advanced Server. As I browse the site, if I delete my cookies through the browser tools, the site hangs when I continue to navigate. I was wondering if this has anything to do with the ASP.NET_SessionId session state...
5
1397
by: Ryan Ternier | last post by:
Hey! We need a solution for a problem. We're designing a site where users hate... absolutly hate... with a passion to sign in with a user name / password system. They want to sign in once, and that's it. User's are all behind an internal IP so we can't use the old method of remembering IP's as that would mess up user preferences. We...
3
1350
by: Ollie | last post by:
Can you check whether a users browser allows you to use cookies? Cheers Ollie
9
3053
by: SHarris | last post by:
Hello, In our new intranet ASP.NET project, two requirements are that the browser accept cookies AND JavaScript. We are requiring the use of Internet Explorer 6+. 1. Using C# in an ASP.NET application, how can we code the project to check to make sure the browser accepts cookies? 2. Where would we put this code? In Global.asax? 3. ...
12
7745
by: Don Juan | last post by:
I have a simple html document I have been using for some time on my (i.e.) abc.com domain that uses cookies. I recently purchased a new domain name and set up a service to redirect my new domain (i.e.) xyz.com to a sub-directory of the abc.com domain. In other words, when someone goes to URL xyz.com, they really end up in abc.com/xyz...
14
5789
by: Sandman | last post by:
Is there any particular reason I should still use $_POST? Also, I'm reading mixed things about sessions. php.net says you can propagate session IDs either via cookies or session IDs: http://www.php.net/manual/en/ref.session.php#session.idpassing OK cool. However, PHP in a nutshell makes no mention of this. Paul just says hey, use...
2
2164
by: =?Utf-8?B?d2FsdGVy?= | last post by:
Hi there... we have a list of internal websites. For logging purpose, we would like to attach some client side info in each HTTP request before submit to server. Two options for us : 1) each website can add some script to do so, but the changes are enumerous; 2) it will be nice if we can inject the info on IE before it submit the request...
0
7487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7934
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7446
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7778
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6003
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.