One way to validate OAF session in custom jsp/servlet in Oracle applications. Method will return "INVALID" if the current session is invalid, "EXPIRED" if current session is expired and "VALID" if current session is valid.
You can also create new session if current session is invalid, wiill post detail in some other post. But, usually if Functionality is part of existing oracle application module, then you will just want to validate if current session is valid or not. If not, you may want to redirect to /OA_HTML/AppsLocalLogin.jsp page.
public static String validateOAFSession(HttpServletRequest request, HttpServletResponse response) {
WebAppsContext appsContext = null;
try {
appsContext = WebRequestUtil.createWebAppsContext(request, response);
if (appsContext != null) {
String sessionCookie = WebRequestUtil.getSessionCookie(request, response, appsContext);
if (sessionCookie == null) {
return "INVALID";
}
if (!appsContext.validateSession(sessionCookie, true)) {
return "EXPIRED";
}
}
} catch (IOException ioe) {
return "INVALID";
} finally {
if (appsContext != null) {
appsContext.freeWebAppsContext();
}
}
return "VALID";
}
You can also create new session if current session is invalid, wiill post detail in some other post. But, usually if Functionality is part of existing oracle application module, then you will just want to validate if current session is valid or not. If not, you may want to redirect to /OA_HTML/AppsLocalLogin.jsp page.
public static String validateOAFSession(HttpServletRequest request, HttpServletResponse response) {
WebAppsContext appsContext = null;
try {
appsContext = WebRequestUtil.createWebAppsContext(request, response);
if (appsContext != null) {
String sessionCookie = WebRequestUtil.getSessionCookie(request, response, appsContext);
if (sessionCookie == null) {
return "INVALID";
}
if (!appsContext.validateSession(sessionCookie, true)) {
return "EXPIRED";
}
}
} catch (IOException ioe) {
return "INVALID";
} finally {
if (appsContext != null) {
appsContext.freeWebAppsContext();
}
}
return "VALID";
}
This applies not only during the IQ, OQ and PQ validation phases, but far earlier,
ReplyDeletebeginning with the first meeting, and continuing through analysis of your process.
Software validation is a part of the design validation for a finished device,
but is not separately defined in the Quality System regulation.
software validation
Great Article. Thank you for sharing! Really an awesome post for every one.
DeleteProject Centers in Chennai
Java Training in Chennai
Final Year Project Domains for IT
Java Training in Chennai
I think this is the best article today. Thanks for taking your own time to discuss this topic, I feel happy about that curiosity has increased to learn more about this topic. Keep sharing your information regularly for my future reference.
ReplyDeleteJava Courses in chennai
Hey, Wow Provided Post will be Very much Informative to the People Who Visit this Site. Good Work! Thank You for Sharing.
ReplyDeleteSEO Training
Very good post!!! I am always like your blog and nice concept of this post. Excellent and great information. Thank you for your good effort with sharing us.
ReplyDeleteTOEFL Coaching in Chennai
TOEFL Training in Chennai
IELTS Coaching in Chennai
Spoken English Classes in Chennai
Ethical Hacking Course in Chennai
Japanese Classes in Chennai
TOEFL Coaching in Adyar
TOEFL Coaching in Porur
I liked your blog.Thanks for your interest in sharing the information.keep updating.
ReplyDeleteEnglish Speaking Classes in Mumbai
English Speaking Course in Mumbai
Best English Speaking Classes in Mumbai
Spoken English Classes in Mumbai
English Classes in Mumbai
Spoken English in Chennai
Spoken English Class in Chennai
Thanks Admin For sharing this massive info with us. it seems you have put more effort to write this blog , I gained more knowledge from your blog. Keep Doing..
ReplyDeleteRegards,
Cloud Computing Courses in Chennai
Cloud Computing Training in Chennai
RPA Training in Chennai
Ethical Hacking Course in Chennai
Blue Prism Training in Chennai
Cloud Computing Courses in T Nagar
Cloud Computing Courses in Velachery
english to bengali typing
ReplyDeleteimo for pc
ReplyDeleteReally nice post. Thank you for sharing amazing information.
ReplyDeleteJava Training in Chennai/Java Training in Chennai with Placements/Java Training in Velachery/Java Training in OMR/Java Training Institute in Chennai/Java Training Center in Chennai/Java Training in Chennai fees/Best Java Training in Chennai/Best Java Training in Chennai with Placements/Best Java Training Institute in Chennai/Best Java Training Institute near me/Best Java Training in Velachery/Best Java Training in OMR/Best Java Training in India/Best Online Java Training in India/Best Java Training with Placement in Chennai
Informative post indeed, I’ve being in and out reading posts regularly and I see alot of engaging people sharing things and majority of the shared information is very valuable and so, here’s my fine read.
ReplyDeleteclick here button png
click here to view/download the e-receipt
click here now
click here for ecs status of pensioners
click here to know centre location
This Information to All the Students .
ReplyDeletemedical coding centers in chennai
best medical coding training institute in chennai
Airline Courses in Chennai
cpc training center in chennai
cpc training institute in chennai
medical coding in chennai
medical coding training institute in chennai