Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Session in web farm

Reply
Thread Tools

Session in web farm

 
 
Danny Ni
Guest
Posts: n/a
 
      11-03-2005
Hi,

Is it possible to use session in web farm? Some say just use cookies because
session does not work in web farm. But others say something about persist
into SQL Sever, if this is true please tell me more about this approach.

TIA


 
Reply With Quote
 
 
 
 
AlanM
Guest
Posts: n/a
 
      11-03-2005
I'm not sure what you mean by persist into SQL.

but you can simply store the vales in sql, and they will persist


"Danny Ni" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is it possible to use session in web farm? Some say just use cookies
> because
> session does not work in web farm. But others say something about persist
> into SQL Sever, if this is true please tell me more about this approach.
>
> TIA
>
>



 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      11-03-2005
Danny Ni wrote:
> Hi,
>
> Is it possible to use session in web farm?


No. Sessions will not persist if the server serving the pages changes.

> Some say just use cookies
> because session does not work in web farm.


They have a point. The only drawback is if the client has cookies turned
off, or has a firewall or anti-spyware software blocking your cookies.

> But others say something
> about persist into SQL Sever, if this is true please tell me more
> about this approach.
>

Not much to say. You will need to have a key to identify each user. Then use
that key to store session -related information in a database (it does not
have to be sql server - any database will do). See
http://www.aspfaq.com/show.asp?id=2491

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session lost in web Farm rochagasdiniz@gmail.com ASP .Net 7 05-18-2006 08:17 PM
urgent: configurating web farm to share Session David ASP .Net 6 09-14-2004 08:54 PM
Session TimeOut and Web Farm =?Utf-8?B?TGVhcm5pbkd1cnU=?= ASP .Net 0 06-28-2004 10:06 AM
web farm session sharing =?Utf-8?B?RGFuaWVs?= ASP .Net 4 05-14-2004 06:20 PM
Re: asp.net session state in web farm does not work with stateserver Robby van Damme ASP .Net 0 08-08-2003 07:37 AM



Advertisments