/    Sign up×
Community /Pin to ProfileBookmark

redirecting to login page on session expiration

i have two webfolders : webmail and app with WEB-INF and web.xml inside. just like any other web folder hierarchy.
I have index.jsp in webmail folder that directs to login.jsp authenticating session.
I have index.jsp in app folder that directs to [B]login1.jsp in webmail folder[/B].
url login.com points to index.jsp in webmail folder.
url login1.com points to index.jsp in app folder.(i have nothing in store in app folder apart from index.jsp) this url is a virtual domain.
Already it is written in code, on session expiration the user gets redirected to login.com by default. Now that I have two domains. If the user logs in login1.com after the session expiration he is redirected to [B]login.com[/B]. As it just happens with login.com in webmail.
[COLOR=Red]IS THERE ANY WAY THAT I CAN REDIRECT USER WHO LOGGED IN LOGIN2.COM TO AGAIN LOGIN2.COM(AS IT SHOULD BE) ON SESSION EXPIRATION.[/COLOR]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @ramu_indian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...