made application object transient to be truly able to serialize session
and added setApp() method
This commit is contained in:
parent
b77e5da24b
commit
077f1dc516
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,7 @@ import helma.objectmodel.db.*;
|
|||
|
||||
public class Session implements Serializable {
|
||||
|
||||
Application app;
|
||||
transient Application app;
|
||||
String sessionID;
|
||||
|
||||
// the unique id (login name) for the user, if logged in
|
||||
|
@ -98,6 +98,10 @@ public class Session implements Serializable {
|
|||
return app;
|
||||
}
|
||||
|
||||
public void setApp (Application app) {
|
||||
this.app = app;
|
||||
}
|
||||
|
||||
public String getSessionID () {
|
||||
return sessionID;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue