---
name: "dbsessmgr2"
section: "1"
platform: "linux"
package: "mono-xsp2"
version: "3.8-2.1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dbsessmgr2"
---

# dbsessmgr2(1)

session state database manager

## NAME

dbsessmgr2 - session state database manager

## SYNOPSIS

**mono dbsessmgr2.exe** \[options\]

## DESCRIPTION

dbsessmgr2 allows you to manage the ASP.NET session state database.

## OPTIONS

- *--clean*

  Remove all expired sessions.

- *--remove*

  Delete all sessions.

- *--show*

  Display session data.

## CONFIGURATION

You can choose the assembly and type used to connect to your database backend and also set the connection string and the SQL parameter prefix through the configuration file, named dbsessmgr2.exe.config. The configuration shipped by default is:

```
    <appSettings>
	<add key="DBProviderAssembly"
	     value="Npgsql"/>
	<add key="DBConnectionType"
	     value="Npgsql.NpgsqlConnection"/>
	<add key="DBConnectionString"
	     value="SERVER=127.0.0.1;USER ID=monostate;PASSWORD=monostate;dbname=monostate"/>
	<add key="DBParamPrefix"
	     value=":" />
    </appSettings>
```

## AUTHORS

dbsessmgr2 was written by Jackson Harper (jackson@ximian.com).

## SEE ALSO

[**mono**(1)](/mono/1.md),[**xsp**(1)](/xsp/1.md),[**asp-state**(1)](/asp-state/1.md),[**mod\_mono**(8)](/mod_mono/8.md)

## MORE INFORMATION

The Mono project (http://www.go-mono.com) is a collaborative effort led by Novell (http://www.novell.com) to implement an open source version of the .NET Framework.
