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.

Spring 2011_CS506 Assignment# 4 Solution Required Due Date 04-JUL-2011

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

.

+ 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

Any Idea....
plz give us idea
Please share idea solution of cs506 4th assignment
Tariq bhai, Yasir bhai , any idea solution please, today is last day
plz aj extend day ha koi to solution upload kray plzzzzzzzzz
plz aj extend day ha koi to solution upload kray plzzzzzzzzz

Don't say plz plz again and again.

Only say plz to those who can send.

But you dont know who have the solution of assignment.

So you are allowed to say every one "plz aj extend day ha koi to solution upload kray plzzzzzzzzzz" 

Idea 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>");  

Attachments:
idea 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

ALEENA replied to +!!!StRaNGeR!!! +'s discussion مار ڈالے گی ہوک ، شہزادی
10 minutes ago
ALEENA liked +!!!StRaNGeR!!! +'s discussion مار ڈالے گی ہوک ، شہزادی
11 minutes ago
ALEENA replied to +!!!StRaNGeR!!! +'s discussion من جس کا مولا ہوتا ہے
13 minutes ago
ALEENA liked +!!!StRaNGeR!!! +'s discussion من جس کا مولا ہوتا ہے
14 minutes ago
ϝ ι ყ α liked ϝ ι ყ α's discussion ** 22 Tricks You Must Master To Become A Keyboard Ninjaa....**
23 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion ** 22 Tricks You Must Master To Become A Keyboard Ninjaa....**
23 minutes ago
ϝ ι ყ α liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion 100 Instructions from the Quran
27 minutes ago
Munyam updated their profile
27 minutes ago
Ikra butt added a discussion to the group MGT211 Introduction To Business
28 minutes ago
Anarkali updated their profile
32 minutes ago
+"Alan Walker"++ liked + !! "AS" !!'s discussion Alfaaz Ki Nisbat..
42 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's blog post خوش نصیب
49 minutes ago
Ayesha Khan replied to + M.Tariq Malik's discussion EDU431 Test Development & Evaluation Assignment No 01 Fall 2019 Solution & Discussion in the group EDU431 Test Development & Evaluation
50 minutes ago
Ayesha Khan joined + M.Tariq Malik's group
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked MA Para's discussion ENG101 1st Assignment Solution Nov 2019
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +!!!StRaNGeR!!! +'s discussion ﺁﭖ ﺩﻝ ﺟﻮﺋﯽ ﮐﯽ ﺯﺣﻤﺖ ﻧﮧ ﺍﭨﮭﺎﺋﯿﮟ ، ﺟﺎﺋﯿﮟ
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked zohaib iftikhar's discussion ...* MARD AUR AURAT KA GUNAH ...*
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion Wo Naraz Ho Tabhe bhi....!
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
50 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked مخلص's discussion Samsung Galaxy S11 Leaked Camera Features
50 minutes ago

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

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