We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

SEEE THAT

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 61

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

dea solution for  cs506


import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;


public class STimerOut extends HttpServlet {
// Handles the HTTP <code>GET</code> method.


  // use rq to read incoming HTTP headers   
  // use rs to specify the HTTP response status
  public void doGet(HttpServletRequest rq, HttpServletResponse rs)
                               throws ServletException, IOException {


   
   // tell the browser that we are sending back html
    rs.setContentType("text/html"); 
   
   // used to modify println() statements to build a legal web page
    PrintWriter out = rs.getWriter();
   
    int t = 60;
   
   /*
   system extracts a user ID from a cookie or attached URL data, then uses
   that as a key into a table of previously created HttpSession objects.
      */
    HttpSession s = rq.getSession();


   /*
   following statements build a legal webpage 
   */
    out.println("<HTML>");
    out.println("<HEAD>");
    out.println("<TITLE >");
    out.println("Session TimeOut ");
    out.println("</TITLE>");
    out.println("</HEAD>");




    out.println("<BODY>");
    out.println("<H1>");
    out.println("Session TimeOut ");
    out.println("</H1>");
    
    out.println("gaining the old time out " +
               s.getMaxInactiveInterval());/* getMaxInactiveInterval() gets the maximum
                              time in seconds for which the session remained
                              inactive.    
    
    out.println("<BR>");
    out.println("<BR>");




    s.setMaxInactiveInterval(2*t*t); /* sets the maximum time in seconds for which the 
                           session can remain inactive. 
    out.println("giving new time to get out " +
               s.getMaxInactiveInterval());


    out.println("</BODY>");
    out.println("</HTML>");

RSS

Latest Activity

彡JK彡 ❤️ replied to + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
1 hour ago
彡JK彡 ❤️ replied to + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
1 hour ago
+"Alan Walker"++ liked zobialatif's discussion hazrat ali says
2 hours ago
+ !! SARAH posted a discussion
3 hours ago
+ !!!R❤G liked + !!!R❤G's discussion Ikhalaq ki ahmiyat
5 hours ago
+ !!!R❤G posted a discussion
5 hours ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
5 hours ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion کہو تو لوٹ جاتے ہیں ۔ ۔ ۔
5 hours ago
+ !!!R❤G liked + IUUOƆƎUT +'s discussion How Can You Get Secured of Being Banned On Ning
5 hours ago
+ !!!R❤G liked UMER UMER's discussion What is Love?
5 hours ago
+ !!!R❤G liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion Happy Birth Day Zargiyah (Tasha <3)
5 hours ago
+ !!!R❤G liked +! ! ! "Asнтαℓғαн's discussion Happy wala Birthday tashy patashy ❤ (Tasha)
5 hours ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion Don't Look for Perfection........ LOVE lies in imperfection
5 hours ago
+ !!!R❤G liked 彡JK彡 ❤️'s discussion If you have sOmething stupid to saY............
5 hours ago
+ !!!R❤G liked Waseem Khan's discussion Edu 402 Assinment No. 1 Solution
5 hours ago
+ !!!R❤G liked Moji's discussion MCM301 assignment no 1
5 hours ago
+ !!!R❤G liked + M.Tariq Malik's discussion VU Students Reserves The Right to Delete Any Profile On the Site
5 hours ago
+ !!!R❤G and + ! ! ! ! ! ! ! ! ! AG are now friends
5 hours ago
Zain Arshad replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
6 hours ago
Muhammad Rashid liked + M.Tariq Malik's discussion ACC501 GDB Fall 2019 Solution & Discussion
6 hours ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service