Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / November 2006

Tip: Looking for answers? Try searching our database.

Question on Stateless Architecture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SF - 27 Oct 2006 08:18 GMT
I have to design a website where the client wants it to be completly
stateless. By stateless I assume he means that he does not want to maintain
any state on the server side. Could anybody provide me any reference
materials as to how should I proceed. When a user logs in I need to pass on
username, userKey... to all the pages in the website. Thanks in advance..

Regards,
Mark Fitzpatrick - 30 Oct 2006 02:02 GMT
It could just be that the client doesn't want to use a session variable. The
funny thing is, the web is stateless anyways so maybe the client is getting
confused or means something slightly different. You could use the Membership
provider built right into ASP.Net with FormsAuthentication to take care of
the maintaining logged in user state against a db. It does the heavy work
and enables you to get the username as well as the users'd id through the
provideruserkey property.

I typically avoid a lot of state across pages. You can use viewstate within
a page if you need to to maintain the state within a page if absolutely
necessary. Perhaps the client is concerned about performance hits for using
sessionstate variables or possible issues with using sessionstate in a
webfarm or webgarden.

Signature

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

>I have to design a website where the client wants it to be completly
> stateless. By stateless I assume he means that he does not want to
[quoted text clipped - 5 lines]
>
> Regards,
SF - 30 Oct 2006 07:36 GMT
Thanks for the reply Mark. Yes the client does not want to use session
variables. I have to pass first name, Last Name, Dealer Number, UserKey etc
across the pages.
Can I store the above information in the membership provider. I was planning
to pass them using hidden variables, Query strings etc. Please suggest

Regards,SF

> It could just be that the client doesn't want to use a session variable. The
> funny thing is, the web is stateless anyways so maybe the client is getting
[quoted text clipped - 19 lines]
> >
> > Regards,
SF - 30 Oct 2006 09:07 GMT
The other reason we don't want to session variables is because of the
performance reasons. Will Profile object have the same sort of performance
hit as compared to the session object?

> Thanks for the reply Mark. Yes the client does not want to use session
> variables. I have to pass first name, Last Name, Dealer Number, UserKey etc
[quoted text clipped - 27 lines]
> > >
> > > Regards,
Mark Fitzpatrick - 12 Nov 2006 15:04 GMT
From what I've seen of the profile and membership providers they do a great
job performance-wise. It's also possible to combine them with some caching
techniques to get better performance. For example, if you have a control
that shows their name on each page if they're logged in, you could create a
caching mechanism to store the profile information based on their ID.

Signature

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

> The other reason we don't want to session variables is because of the
> performance reasons. Will Profile object have the same sort of performance
[quoted text clipped - 43 lines]
>> > >
>> > > Regards,
SF - 23 Nov 2006 09:59 GMT
Thanks for the reply. Client does not want to use any state whatsoever on the
server side. So I ws planning to use client side state management.

Thanks,

> From what I've seen of the profile and membership providers they do a great
> job performance-wise. It's also possible to combine them with some caching
[quoted text clipped - 49 lines]
> >> > >
> >> > > Regards,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.