Can I store a database connection in the Session object?
Asp – In Classic asp, can I store a database connection in the Session object
asp-classicdatabase-connectionsession
Related Question
- Where to store connection string for classic ASP
- Postgresql – the format for the PostgreSQL connection string / URL
- What are sessions? How do they work
- Rest – Do sessions really violate RESTfulness
- Javascript – Invalidating JSON Web Tokens
- Java – Warning about SSL connection when connecting to MySQL database
Best Solution
It is generally not recommended to do so, a connection string in the Application variable, with a nice helper function/class is a much preferred method.
Hereis some reference. (Dead link removed because it now leads to a phishy site)