Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
81238928
Commit
81238928
authored
15 years ago
by
buczekp
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-1291] minor changes
SVN: 14375
parent
871fc293
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/AbstractClientService.java
+4
-3
4 additions, 3 deletions
...nbis/generic/client/web/server/AbstractClientService.java
with
4 additions
and
3 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/AbstractClientService.java
+
4
−
3
View file @
81238928
...
...
@@ -252,7 +252,7 @@ public abstract class AbstractClientService implements IClientService,
return
getOrCreateHttpSession
(
false
);
}
private
final
HttpSession
creatHttpSession
()
private
final
HttpSession
creat
e
HttpSession
()
{
return
getOrCreateHttpSession
(
true
);
}
...
...
@@ -338,18 +338,19 @@ public abstract class AbstractClientService implements IClientService,
{
return
null
;
}
final
HttpSession
httpSession
=
creatHttpSession
();
final
HttpSession
httpSession
=
creat
e
HttpSession
();
// Expiration time of httpSession is 10 seconds less than of session
final
int
sessionExpirationTimeInMillis
=
session
.
getSessionExpirationTime
();
final
int
sessionExpirationTimeInSeconds
=
sessionExpirationTimeInMillis
/
1000
;
if
(
sessionExpirationTimeInMillis
<
0
)
{
httpSession
.
setMaxInactiveInterval
(-
1
);
}
else
if
(
sessionExpirationTimeInMillis
<
1000
||
sessionExpirationTimeInSeconds
<
10
)
}
else
if
(
sessionExpirationTimeInSeconds
<
10
)
{
httpSession
.
setMaxInactiveInterval
(
0
);
}
else
{
System
.
err
.
println
(
sessionExpirationTimeInSeconds
-
10
);
httpSession
.
setMaxInactiveInterval
(
sessionExpirationTimeInSeconds
-
10
);
}
httpSession
.
setAttribute
(
SessionConstants
.
OPENBIS_SESSION_TOKEN_ATTRIBUTE_KEY
,
session
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment