---
name: "dbsessmgr"
section: "1"
platform: "linux"
package: "mono-xsp"
version: "4.2-2.4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/dbsessmgr4"
---

# dbsessmgr(1)

session state database manager

Part of [dbsessmgr4(1)](/dbsessmgr4/1.md).

## NAME

dbsessmgr4 - session state database manager

## SYNOPSIS

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

## DESCRIPTION

dbsessmgr4 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 dbsessmgr4.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

dbsessmgr4 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.
