473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using Single Database for state w/ multiple web apps

We have multiple ASP.Net web apps in development. As a standard we
are looking to go with SQL Server to hold state information.

Can we have the multiple apps all point to a single State DB? Or do we
need to install multiple instances of the State database on to the SQL
Server (one for each Web app)?

It would seem that you could run into troubles pointing several web
apps at the same DB, because you would introduce the possibility (a
remote possibility granted) of duplicating the state's key..

Thanks
jeffpriz
Nov 18 '05 #1
4 2282
je******@yahoo.com (Jeff) wrote in news:cd5d6d81.0410141235.1b0134e5
@posting.google.com:
It would seem that you could run into troubles pointing several web
apps at the same DB, because you would introduce the possibility (a
remote possibility granted) of duplicating the state's key..


How are you generating the key?

There are several ways to generate unique keys.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
Hi Jeff,

I do this. I always have users log in though and then they can move from
app to app, server to server. The best thing to do is have all apps use a
web service to provide state support. If people do not need to be logged in
then you can still use this but I would still utilize the shared web
service, that way keys should never be duplicated. And if you are using an
Idntity field in your SQL table then you should never have a duplicated key.
Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Jeff" <je******@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
We have multiple ASP.Net web apps in development. As a standard we
are looking to go with SQL Server to hold state information.

Can we have the multiple apps all point to a single State DB? Or do we
need to install multiple instances of the State database on to the SQL
Server (one for each Web app)?

It would seem that you could run into troubles pointing several web
apps at the same DB, because you would introduce the possibility (a
remote possibility granted) of duplicating the state's key..

Thanks
jeffpriz

Nov 18 '05 #3
Thanks for the reply...

So should i take away from your response, that I would not be able to
simply point both App's session state at the one database?

Can I point 2 app's session state there without troubles? or do i have
to go through a service to handle state.

Also, i'm confused by your suggestion of using an Identity field..
I'm not sure off-hand how the InstallPersistSQLState.sql sets up the
tables, but I doubt I'd get too far by trying to re-work that
Database.

I just want to keep session state for 2 apps on a single Session db.

jeffpriz
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message news:<#U*************@TK2MSFTNGP15.phx.gbl>...
Hi Jeff,

I do this. I always have users log in though and then they can move from
app to app, server to server. The best thing to do is have all apps use a
web service to provide state support. If people do not need to be logged in
then you can still use this but I would still utilize the shared web
service, that way keys should never be duplicated. And if you are using an
Idntity field in your SQL table then you should never have a duplicated key.
Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Jeff" <je******@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
We have multiple ASP.Net web apps in development. As a standard we
are looking to go with SQL Server to hold state information.

Can we have the multiple apps all point to a single State DB? Or do we
need to install multiple instances of the State database on to the SQL
Server (one for each Web app)?

It would seem that you could run into troubles pointing several web
apps at the same DB, because you would introduce the possibility (a
remote possibility granted) of duplicating the state's key..

Thanks
jeffpriz

Nov 18 '05 #4
Hi Jeff,

Sorry, I don't know the answers. I thought you were trying to do some
custom state thing where you have multiple apps that work together and
people move in and out of. I would give it a try and see what happens.
Here is the field that the .SQL creates to identify the session:

SessionId CHAR(32) NOT NULL PRIMARY KEY,

My guess is that it is holding a GUID. GUIDs are rarely duplicated and it
sounds like this is using a Windows Service. So if both apps are using that
same service (i.e. they are on the same web server) I would imagine that the
service would make sure that it didn't duplicate GUIDs and pointing to the
same DB would be fine. If they were on seperate servers, then the instances
of the Windows Service handling this wouldn't know about each other and
therefore couldn't coordinate the usage of unique GUIDs. Then again, if the
Windows Service first queries the DB to make sure the GUID it generates
isn't in use then running the apps on muliple servers pointing to the same
DB should work fine also.

Anyway, as you can see I have no idea what I'm dealing with here so I can't
give you an answer. Hopefully this is enough information to let you maybe
make another post asking specific questions to resolve this. Good luck!
Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Jeff" <je******@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
Thanks for the reply...

So should i take away from your response, that I would not be able to
simply point both App's session state at the one database?

Can I point 2 app's session state there without troubles? or do i have
to go through a service to handle state.

Also, i'm confused by your suggestion of using an Identity field..
I'm not sure off-hand how the InstallPersistSQLState.sql sets up the
tables, but I doubt I'd get too far by trying to re-work that
Database.

I just want to keep session state for 2 apps on a single Session db.

jeffpriz
"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message

news:<#U*************@TK2MSFTNGP15.phx.gbl>...
Hi Jeff,

I do this. I always have users log in though and then they can move from app to app, server to server. The best thing to do is have all apps use a web service to provide state support. If people do not need to be logged in then you can still use this but I would still utilize the shared web
service, that way keys should never be duplicated. And if you are using an Idntity field in your SQL table then you should never have a duplicated key. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Jeff" <je******@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
We have multiple ASP.Net web apps in development. As a standard we
are looking to go with SQL Server to hold state information.

Can we have the multiple apps all point to a single State DB? Or do we
need to install multiple instances of the State database on to the SQL
Server (one for each Web app)?

It would seem that you could run into troubles pointing several web
apps at the same DB, because you would introduce the possibility (a
remote possibility granted) of duplicating the state's key..

Thanks
jeffpriz

Nov 18 '05 #5

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

Similar topics

112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
3
by: masoud bayan | last post by:
Hi, We have 3 different web applications on three different websites (and domains). Now we want to make it possible for users to login in each of these applications and can navigate to other...
2
by: Bob | last post by:
I would like to use integrated security for DB connection for my ASP.NET applications. Since these apps have different databases (SQL Server), I want each app to be able to access its own...
4
by: Jai | last post by:
Hi, I have a problem related to Login System. I am developing 3 websites for some institution.Now they want that if anybody had sign up for there site1.com(say), than he or she should be able...
4
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.