Closed Thread
Results 1 to 2 of 2

Thread: First Java Program and .....

  1. #1
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23

    First Java Program and .....

    I'm developing a Web Application, and i don't understand how session and request variables work. Can someone point me in the right direction?

    This is for a class.......
    Void

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    brackett is offline Programmer
    Join Date
    May 2006
    Posts
    192
    Rep Power
    22
    Quote Originally Posted by Void View Post
    I'm developing a Web Application, and i don't understand how session and request variables work. Can someone point me in the right direction?

    This is for a class.......
    Session variables are stored on the server's memory and are never sent down to the client. This is more secure and faster (since RAM is faster than network), but takes up server RAM. Also, in a webfarm, session variables are per-server, which is not usually what you want. .NET can deal with this by having a "state server", but then you lose the performance advantage. You still have a security advantage, though, in that since it's never sent to the client, the client can't modify it directly.

    Request variables are sent to the client at the end of 1 request, and are returned by the client at the beginning of the next. Cookies, form variables, and query strings are all examples of request variables. These can be modified by the client, or never returned by the client - so they're not all that reliable. That being said, for 9/10 of the data that needs to round trip, they're Good Enough.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Upload Java program
    By Escape in forum HTML Programming
    Replies: 2
    Last Post: 03-06-2011, 01:44 PM
  2. Help on my Java program
    By J_hollow in forum Java Help
    Replies: 2
    Last Post: 05-10-2010, 10:22 AM
  3. First and Hardest Java Program
    By Dyroxide in forum Java Help
    Replies: 4
    Last Post: 02-23-2009, 07:51 PM
  4. Need Help With Java Program
    By coala2000 in forum Java Help
    Replies: 3
    Last Post: 12-28-2008, 05:42 AM
  5. Help anyone pls!! Java program
    By DexterHol in forum Java Help
    Replies: 1
    Last Post: 11-20-2007, 11:51 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts