Can someone please advise on how I can add logic that dynamically sets the
session state's cookie mode to UseUri or UseCookies on a per user basis?
In other words, depending on our business rules and logic, there are times
when I need to set a particular visitor's session to use the URL encoding
(CookieMode.Use Uri) instead of using cookies. Yes I know there is an auto
type setting but that is not applicable to our needs. There are also
settings in web.config but again these settings apply to ALL sessions, and
instead I want the ability to use difference cookie modes for different
users.
From the ASP.NET 2.0 beta docs it looks like this can be done by creating a
class which implements the IHttpSessionSta te, as the CookieMode property of
the IHttpSessionSta teContainer can be easily set from there. However to use
my own IHttpSessionSta teContainer the docs say I have to replace the default
SessionStateMod ule with my own. That would be overkill because the default
SessionStateMod ule and HttpSessionStat eContainers are perfect as-is... I
just need to tap in to the CookieMode property to control how it is set.
And the SessionStateMod ule is sealed, so if I understand correctly I simply
cannot create a new class and derrive from the default SessionStateMod ule -
so I would then have to code one from scratch? And as would be expected I
simply cannot set the CookieMode property in the Session object
after-the-fact, as that is a read-only property at that point.
Can somone please advise me on the most straight-forward way to tap into
this default session state management in ASP.NET 2.0 so I can dynamically
set the CookieMode individually for each user as needed (between
CookieMode.UseU ri vs .UseCookies), based on my own rules?
Thanks!
Steve 3 2258
Hi all - I posted this last week but unfortunately did not receive any
responses. I also tried posting this in a few other .NET forums and on and
advanced .NET discussion list, none of which received any replies either.
Can someone please tell me what a good way would be to try and pose this
question directly to the ASP.NET Beta 2.0 team? Do any of those folks lurk
here? I thought the ASP.NET forums would reach them but no answers there
either. I'm hoping someone on the MS dev team can help?
Thanks much!
Steve
With this in mind, can someone please tell me
"Steve Franks" <pl****@postrep lyhere.com> wrote in message
news:yI******** ************@co mcast.com... Can someone please advise on how I can add logic that dynamically sets the session state's cookie mode to UseUri or UseCookies on a per user basis?
In other words, depending on our business rules and logic, there are times when I need to set a particular visitor's session to use the URL encoding (CookieMode.Use Uri) instead of using cookies. Yes I know there is an auto type setting but that is not applicable to our needs. There are also settings in web.config but again these settings apply to ALL sessions, and instead I want the ability to use difference cookie modes for different users.
From the ASP.NET 2.0 beta docs it looks like this can be done by creating a class which implements the IHttpSessionSta te, as the CookieMode property of the IHttpSessionSta teContainer can be easily set from there. However to use my own IHttpSessionSta teContainer the docs say I have to replace the default SessionStateMod ule with my own. That would be overkill because the default SessionStateMod ule and HttpSessionStat eContainers are perfect as-is... I just need to tap in to the CookieMode property to control how it is set. And the SessionStateMod ule is sealed, so if I understand correctly I simply cannot create a new class and derrive from the default SessionStateMod ule - so I would then have to code one from scratch? And as would be expected I simply cannot set the CookieMode property in the Session object after-the-fact, as that is a read-only property at that point.
Can somone please advise me on the most straight-forward way to tap into this default session state management in ASP.NET 2.0 so I can dynamically set the CookieMode individually for each user as needed (between CookieMode.UseU ri vs .UseCookies), based on my own rules?
Thanks!
Steve
Hi all - I posted this last week but unfortunately did not receive any
responses. I also tried posting this in a few other .NET forums and on and
advanced .NET discussion list, none of which received any replies either.
Can someone please tell me what a good way would be to try and pose this
question directly to the ASP.NET Beta 2.0 team? Do any of those folks lurk
here? I thought the ASP.NET forums would reach them but no answers there
either. I'm hoping someone on the MS dev team can help?
Thanks much!
Steve
"Steve Franks" <pl****@postrep lyhere.com> wrote in message
news:Oo******** ************@co mcast.com... Hi all - I posted this last week but unfortunately did not receive any responses. I also tried posting this in a few other .NET forums and on
and advanced .NET discussion list, none of which received any replies either.
Can someone please tell me what a good way would be to try and pose this question directly to the ASP.NET Beta 2.0 team? Do any of those folks
lurk here? I thought the ASP.NET forums would reach them but no answers there either. I'm hoping someone on the MS dev team can help?
Thanks much!
Steve
With this in mind, can someone please tell me "Steve Franks" <pl****@postrep lyhere.com> wrote in message news:yI******** ************@co mcast.com... Can someone please advise on how I can add logic that dynamically sets
the session state's cookie mode to UseUri or UseCookies on a per user basis?
In other words, depending on our business rules and logic, there are
times when I need to set a particular visitor's session to use the URL
encoding (CookieMode.Use Uri) instead of using cookies. Yes I know there is an
auto type setting but that is not applicable to our needs. There are also settings in web.config but again these settings apply to ALL sessions,
and instead I want the ability to use difference cookie modes for different users.
From the ASP.NET 2.0 beta docs it looks like this can be done by
creating a class which implements the IHttpSessionSta te, as the CookieMode
property of the IHttpSessionSta teContainer can be easily set from there. However to use my own IHttpSessionSta teContainer the docs say I have to replace the default SessionStateMod ule with my own. That would be overkill
because the default SessionStateMod ule and HttpSessionStat eContainers are
perfect as-is... I just need to tap in to the CookieMode property to control how it is set. And the SessionStateMod ule is sealed, so if I understand correctly I simply cannot create a new class and derrive from the
default SessionStateMod ule - so I would then have to code one from scratch? And as would be expected I simply cannot set the CookieMode property in the Session object after-the-fact, as that is a read-only property at that point.
Can somone please advise me on the most straight-forward way to tap into this default session state management in ASP.NET 2.0 so I can
dynamically set the CookieMode individually for each user as needed (between CookieMode.UseU ri vs .UseCookies), based on my own rules?
Thanks!
Steve
_______________ _______________ _______________ _______________ _______________ ____
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><>< > The Worlds Uncensored News Source <><><><><><><>< > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike |
last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta;
frameworkv2.0.50215 ) the source code below I get errors (listed below due to
the use of ICallBackEventHandler. Ultimately I want to use a callback from
the client side to update webcontrols based on user input without using
postback.
I am seeking a way to stop the compile errors.
using System;
using System.Data;
|
by: Eric Johannsen |
last post by:
I have a simple object that inherits from CollectionBase and overrides the
Count property:
namespace MyTest
{
public class CollTest : System.Collections.CollectionBase
{
public override int Count
{
get { return 0; }
|
by: bhavin |
last post by:
Hi,
Can someone point me to some good best practices kind of documentation on
use of events compared to method overriding.
Ex. In Windows Forms when should i have an event handler for Paint, and when
should i override OnPaint?
I have to implement added functionality in a child class, and am in two
minds .. to have the parent fire an event, or make the method virtual and
override in the child. Am hoping some reading with description of...
|
by: SStory |
last post by:
I have a style sheet for my site. It has various classes in it.
It has <A: styles defined for all anchor tags.
I have a datagrid in ASP.NET with a stylesheet linked to the page.
It defines links a yellow which is what I normally won't but in this case I
want to override the link color and can't seem to do it.
I set the forecolor in itemstyle prop. But it doesn't work.
|
by: Lauchlan M |
last post by:
Hi.
I have an ASP.net project that works fine.
I copied it to another project using the following steps:
<<
(i) create a new VS.NET ASP.NET project.
| |
by: Emil Stoev |
last post by:
Howdy eXperts!
I have this problem w/ my ASP.NET control. The control is a menu with the
following structure:
Menu
Group 1
Item 1
Item 2
Item 3
|
by: msnews.microsoft.com |
last post by:
Hello All,
I am trying to write Web Controls and in most of the samples I came across,
I am seeing the following function where a HTML string is written to create
HTML Controls.
/// <summary>
/// Render this control to the output parameter specified.
|
by: BlueSky |
last post by:
Hi All,
Is there an equivalent html control or asp control in .NET that does
the following -
<ul>
<li>list item1</li>
<li>list item2</li>
<li>list item3</li>
</ul>
Thanks for any tip!
|
by: shamirza |
last post by:
· When was .NET announced?
Bill Gates delivered a keynote at Forum 2000, held June 22, 2000,
outlining the .NET 'vision'. The July 2000 PDC had a number of sessions
on .NET technology, and delegates were given CDs containing a
pre-release version of the .NET framework/SDK and Visual Studio.NET.
· When was the first version of .NET released?
The final version of the 1.0 SDK and runtime was made publicly
available around 6pm PST on...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |