Change session timeout interval?

Frequently asked questions.

Moderator: moderators

Change session timeout interval?

Postby friendlyferret » Sun Jan 24, 2016 4:11 pm

Dear Subsonic,
I'm using version 5.2.1.
Is there a way for the administrator to change the amount of time
allowed before a session times out? Or to disable it completely?
Thanks,
ff
friendlyferret
 
Posts: 5
Joined: Thu Nov 27, 2014 7:01 pm

Re: Change session timeout interval?

Postby williamsdb » Fri Feb 19, 2016 10:05 pm

+1 for this. I love Subsonic but this is the only thing I would change.
williamsdb
 
Posts: 5
Joined: Sat Feb 06, 2010 4:07 pm

Re: Change session timeout interval?

Postby FormerLibrarian » Sat Oct 08, 2016 6:13 pm

I am looking for an answer on this as well. I found https://cs.cementhorizon.com/2014/06/12 ... -subsonic/
and since I'm on Windows and not Linux I performed the following steps:
Stopped the Subsonic service
Killed the subsonic agent in task manager because it was still open for some reason
copied the C:\Program Files (x86)\Subsonic\subsonic-booter-jar-with-dependencies.jar file to a subdirectory I created called workspace
opened 7-zip as admin [it wouldn't extract it unless I did so]
extracted the jar file
located the C:\Program Files (x86)\Subsonic\workspace\subsonic-booter-jar-with-dependencies\org\mortbay\jetty\webapp\webdefault.xml file
opened JEdit as an administrator, and opened that file
changed the default session timeout variable from 30 to 20160 [two weeks]
saved the file
in 7zip, rezipped the folder as a new archive, change the file extenstion to .jar
renamed the original .jar file to .jar.orig and agreed to the UAC query
copied the updated .jar to the C:\Program Files (x86)\Subsonic\ folder and tried to restart the service.
It failed. I received the following error:
java.lang.ClassNotFoundException: net.sourceforge.subsonic.booter.Main
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4jruntime.WinLauncher.main(Unknown Source)

I admit to knowing very little about Java but I'm not sure what I'm missing - it could be as simple as how I'm decompiling and recompiling the jar file. When I read through the linux script I'm not seeing anything I didn't handle manually.
I'll continue to see if I can figure out why the Main.Class file is breaking when I did not edit it.
FormerLibrarian
 
Posts: 1
Joined: Sat Oct 08, 2016 5:34 pm


Return to FAQs

Who is online

Users browsing this forum: No registered users and 1 guest