Version 8 (modified by Steffen Hoffmann, 6 years ago) (diff)

csabahenk's version had been uploaded to a 0.10 branch long ago

Secure Session Plugin

Notice: This plugin is unmaintained and available for adoption.


Trac plugin to lock an authenticated user into using https://

Bugs/Feature Requests

Existing bugs and feature requests for SecSessionPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:secsessionplugin here].


You can check out SecSessionPlugin from here using Subversion, or browse the source with Trac.


Requires setup in trac.ini

secsession.* = enabled

The web server must also be configured to only allow access to the login url via https. An example rewrite rule for apache might look like the following:

RewriteEngine On
RewriteRule ^/login https://%{SERVER_NAME}/login [L]


Author: pacopablo
Contributors: csabahenk?


This works great and is very useful (I'm using it with trac 0.9.5), just one issue I'd like to know if anyone has found a workaround for: normally in trac when you click on "login", after the login you stay on the page you were on. With the suggested setup here people always get moved to the base of the wiki. Anyone found a way to get back to the original trac behavior?

I'd like to know if it works with tracd, too.