<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jholjhapata.com/index.php?action=history&amp;feed=atom&amp;title=OutProc_Session_SQLServer</id>
	<title>OutProc Session SQLServer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jholjhapata.com/index.php?action=history&amp;feed=atom&amp;title=OutProc_Session_SQLServer"/>
	<link rel="alternate" type="text/html" href="https://jholjhapata.com/index.php?title=OutProc_Session_SQLServer&amp;action=history"/>
	<updated>2026-05-17T04:18:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://jholjhapata.com/index.php?title=OutProc_Session_SQLServer&amp;diff=148&amp;oldid=prev</id>
		<title>Admin at 10:47, 3 August 2022</title>
		<link rel="alternate" type="text/html" href="https://jholjhapata.com/index.php?title=OutProc_Session_SQLServer&amp;diff=148&amp;oldid=prev"/>
		<updated>2022-08-03T10:47:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:47, 3 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot; &gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;sessionState mode=&amp;quot;SQLServer&amp;quot; sqlConnectionString=&amp;quot;data source=DESKTOP-ABGPQE5; user id=sa;password=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;9fc300a7&lt;/del&gt;;&amp;quot; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;     &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;sessionState mode=&amp;quot;SQLServer&amp;quot; sqlConnectionString=&amp;quot;data source=DESKTOP-ABGPQE5; user id=sa;password=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;XXXXXXXXX&lt;/ins&gt;;&amp;quot; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/system.web&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/system.web&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://jholjhapata.com/index.php?title=OutProc_Session_SQLServer&amp;diff=147&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;ASP.NET session state is designed to enable you to easily store user session data in different sources for your ASP.NET applications. By default, session state values and info...&quot;</title>
		<link rel="alternate" type="text/html" href="https://jholjhapata.com/index.php?title=OutProc_Session_SQLServer&amp;diff=147&amp;oldid=prev"/>
		<updated>2022-07-29T15:29:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;ASP.NET session state is designed to enable you to easily store user session data in different sources for your ASP.NET applications. By default, session state values and info...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ASP.NET session state is designed to enable you to easily store user session data in different sources for your ASP.NET applications. By default, session state values and information are stored in memory within the ASP.NET process. Alternatively, you can store session data in a SQL Server database, where it can be shared by multiple Web servers. For more information about session state, see Implementing a Session-State Store Provider and Session-State Modes.&lt;br /&gt;
&lt;br /&gt;
=== Configure SQL Server to store ASP.NET session state ===&lt;br /&gt;
&lt;br /&gt;
Before you can actually store a session state in SQL server, you need to configure it. This configuration is done via a command line tool called ASPNET_REGSQL.EXE. You can store the session state in three possible locations within the SQL Server:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command !! Description&lt;br /&gt;
|-&lt;br /&gt;
| -S &amp;lt;server&amp;gt; || Species the IP address or the name of SQL server in which you want to store the session state&lt;br /&gt;
|-&lt;br /&gt;
| -U || Specifies the user ID to be used when connecting to the SQL Server&lt;br /&gt;
|-&lt;br /&gt;
| -P || Specifies the password to be used when connecting to the SQL Server&lt;br /&gt;
|-&lt;br /&gt;
| -E || Indicates that you want to use integrated security when connecting to the SQL Server&lt;br /&gt;
|-&lt;br /&gt;
| -ssadd || Adds support for the SQLServer mode session state&lt;br /&gt;
|-&lt;br /&gt;
| -ssremove || Removes support for the SQLServer mode session state&lt;br /&gt;
|-&lt;br /&gt;
| -sstype || Type of session state support. This option can be:&amp;lt;br&amp;gt;&lt;br /&gt;
t for temporary storage&amp;lt;br&amp;gt;&lt;br /&gt;
p for persistent storage&amp;lt;br&amp;gt;&lt;br /&gt;
c for custom storage&lt;br /&gt;
|-&lt;br /&gt;
| -d&amp;lt;br&amp;gt;&amp;lt;database&amp;gt; || The name of the custom database to use if -sstype switch is &amp;quot;c&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It opens command prompt.  Type the following command to create the SQL State Database tables and procedures.&lt;br /&gt;
&lt;br /&gt;
'''C:\%windir%\Microsoft.NET\Framework\&amp;lt;versionNumber&amp;gt;\'''&lt;br /&gt;
&lt;br /&gt;
For creating default Database for SQL State.&lt;br /&gt;
&lt;br /&gt;
'''aspnet_regsql.exe -S XXXXX -U XX -P XXXXXXXXX -ssadd -sstype p'''&lt;br /&gt;
&lt;br /&gt;
Update &amp;lt;sessionState&amp;gt; tag in '''web.congif'''&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;system.web&amp;gt;&lt;br /&gt;
  &amp;lt;sessionState mode=&amp;quot;SQLServer&amp;quot; sqlConnectionString=&amp;quot;data source=DESKTOP-ABGPQE5; user id=sa;password=9fc300a7;&amp;quot; cookieless=&amp;quot;false&amp;quot; timeout=&amp;quot;20&amp;quot;/&amp;gt;    &lt;br /&gt;
  &amp;lt;/system.web&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>