On Jun 7, 8:51 am, "in da club" <xx> wrote:
> For performance issue ;)
Ah, performance issue. Gotta squeeze that extra bit of performance
out of our cookie-setting routine and do it by hand. Good plan.
Look, Session uses Cookies. In fact, it sets a Cookie containing
something that you can essentially think of as a UserID. As in, it
does exactly what you're looking to do already. And it does it just
as fast as you could by hand, so your "performance" claim only makes
you look like you haven't done your homework.
Look into FormsAuthentication. Chances are it does exactly what
you're looking for.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/
-----------------------------------------------Reply-----------------------------------------------
"in da club" <xx> wrote in message
news:eTio6ANqHHA.4152@TK2MSFTNGP04.phx.gbl...
> For performance issue ;)
Er...
--
http://www.markrae.net
-----------------------------------------------Reply-----------------------------------------------
http://www.developerfusion.co.uk/show/4318/2/ take a look
Since session variables are stored on the Web server's memory, storing large
objects in a user's session on a site with many simultaneous users can lead
to reduced memory on the Web server. For more information on session
variables see the Session Variables FAQs on ASPFAQs.com.
I can use javascript to write and read cookies without exhausting my server
resources ;)
-----------------------------------------------Reply-----------------------------------------------
"in da club" <xx> wrote in message
news:%23xv8mHPqHHA.3228@TK2MSFTNGP03.phx.gbl...
> Since session variables are stored on the Web server's memory, storing
> large objects in a user's session on a site with many simultaneous users
> can lead to reduced memory on the Web server. For more information on
> session variables see the Session Variables FAQs on ASPFAQs.com.
Cookies are tiny pieces of textual information, no use at all for "storing
large objects", so your comparison is meaningless.
> I can use javascript to write and read cookies without exhausting my
> server resources ;)
What about the (increasing number of) people who disable cookies and/or
JavaScript...?
--
http://www.markrae.net