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.

see

+ 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: 62

.

+ 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

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

Muhammad Sarfraz replied to + M.Tariq Malik's discussion FIN630 Investment Analysis & Portfolio Management GDB Fall 2019 Solution & Discussion in the group FIN630 Investment Analysis & Portfolio Management
26 seconds ago
Profile IconMuhammad Sarfraz and Zaheer Bashir joined + M.Tariq Malik's group
28 seconds ago
+ ! ! ! ! Mehαr Mαh꧂ replied to + ! ! ! ! Mehαr Mαh꧂'s discussion Assignment #1 MCM511 Theories of Communication fall 2019 in the group MCM511 Theories of Communication
30 seconds ago
Profile IconMuhammad Sarfraz, Muhammad Younas Rajpoot, Zeeshan Khalid and 11 more joined Virtual University of Pakistan
5 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
5 minutes ago
+¢αяєℓєѕѕ gιяℓ posted a discussion
11 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
13 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
16 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
17 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
17 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Kya Mien Writer Ban Sakti Hoon :-P
18 minutes ago
wajiha malik replied to + M.Tariq Malik's discussion EDU301 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU301 General Methods of Teaching
18 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
19 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
21 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU301 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU301 General Methods of Teaching
22 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
24 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
24 minutes ago
wajiha malik replied to + M.Tariq Malik's discussion EDU301 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU301 General Methods of Teaching
26 minutes ago
wajiha malik joined + M.Tariq Malik's group
26 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
28 minutes ago

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

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