473,809 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Session State in a database other than ASPState?

I have several applications running in a hosted environment and the
provider will not allow either a session state service or a session
state on the sql server.

Is there any way I can add the session state tables to my own database
and use that instead? I have tried to put the "initial catalog" in the
connect string, but .Net doesn't like that...

Matt...
mt****@lgc.com
Jul 19 '05 #1
2 2689
"initial catalog" means the default database opened when you connect to a
database server. For example, when you connect to a SQL server with
"initial catalog=pubs" , you will only access the data in database pubs.
Anyway, this seems not help to the session problem. You may need to contact
your provider if they support the Session object in ASP.NET. If not, we
have little to do: From the Request object, we can get the client's IP, and
save some record with the speciall IP in the database.Howeve r, without
Session object, we can't determine when a client will disconnect, the
records may be kept in the database.

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #2
This is by design and can't be changed.

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #3

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

Similar topics

0
1672
by: Tony | last post by:
We are a software company that builds an ASP.Net web application which implements cookieless sessionState with SQLServer- the session is stored in the url. Our ASPState database has been built using the standard MS scripts. The application is used by Admins to look at endusers accounts- permissions dictate that certain admins have access to certain endusers. Our Admins (who work from the same facility) have reported problems- stating...
2
402
by: Matt | last post by:
I have several applications running in a hosted environment and the provider will not allow either a session state service or a session state on the sql server. Is there any way I can add the session state tables to my own database and use that instead? I have tried to put the "initial catalog" in the connect string, but .Net doesn't like that... Matt... mtatro@lgc.com
1
2690
by: Julie Barnet | last post by:
Hi, I am having a problem with my session state through sql server. This used to work, then all of a sudden (the only change was setting up replication in the sqlserver database) it stopped working. I ran uninstallsqlstate.sql after stopping w3svc and then restarted the w3svc and rean installsqlstate.sql. This works fine on my machine and my session variables work again....but I'm an administrator on the database. I go to another...
3
12389
by: Ahmed Hashish | last post by:
Dear All I'm trying to use the sql server 2005 to store my web application session variables, First I modified the web.config as follows: <sessionState mode="SQLServer" cookieless="true" regenerateExpiredSessionId="true" timeout="60"
0
1253
by: Kevin Jackson | last post by:
We are running a ASP.NET 1.1 web app on Windows Server 2003 SP1. We are using IIS 6.0 native mode and .NET 1.1 SP1 is installed. We have 3 web apps in our web farm. We are using SQLServer session state and have our machinekeys matched. We just launched a few days ago. We did an iisreset this morning on all 3 and tonight when things settled down I noticed we had 30 SPIDs still connected to the web apps. These SPIDs were all...
1
2529
by: Calculated | last post by:
We have a number of databases mirrored including the ASPState session database used by the websites. However the connection string to the ASPState database does not allow you to include the 'Failover Partner = ServerB' parameter, and it does require you to have the 'Data Source = ServerA' parameter. (Where ServerA = Principal, ServerB = Secondary.) Normal databases that allow you to have 'Failover Partner' parameter work great. How is...
0
902
by: abraxas | last post by:
I was able to configure and run an ASP.NET (V2 framework) application to use state session data stored on a SQL Server 2000 server database per MS KB 311209 (Persistent SQL Server Session State Management) without issues. In the application "web.config" file I'm using this for the connection string: <sessionState mode="SQLServer" sqlConnectionString="Integrated Security=SSPI;data source=sqlserver\instancename" />. With this string...
1
6082
by: dchinn | last post by:
I have a freshly installed test machine, both 1.1 and 2.0 frameworks installed, and sql server 2005. The application was ported from 1.1 -2.0. I ran aspnet_regsql wizard with defaults, which creates an aspnetdb in sql. The application runs in an IIS vroot that was set up (call it "foo"), and I checked to make sure that the asp.net property tap for the vroot was using the 2.0 framework.
1
2640
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've been looking at using SQLServer to maintain session state. I'm confused over what permissions are required. There is an autoexec stored procedure in master called ASPState_Startup that creates two tables in tempdb. There is a database called ASPState that contains the stored procedures called by web pages that have session state enabled. Assume my connection string logs in as user StateUser... What permissions does it need in...
0
9602
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,...
0
10639
Oralloy
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...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
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,...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
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...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
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...

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.