• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question from mock test

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question ID :998419573848
Identify the techniques that can be used to implement 'sessions' if the client browser does not support cookies.
options given are:
1.URL rewritting
2.Hidden form fields
3.Using https protocol
4.Using http header
5.It can not be done without cookie support
Choose any 2.
right ans given are 1 & 3
but I think 1 & 2
Need explanation..
thanks in advance
Trupti
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trupti,
Definitely Hidden form fields is also a correct option for the question.
[
Actually the question,should have been read as,
"Identify the techniques that can be used to implement 'sessions' if the client browser does not support cookies and
a) No work needs to be done by the servlet developer
b) Secure way of maintaing sessions
]
The question is actually based on the Servlets Specification. And in the Servlets specification,hidden form fields is not given as an option of maintaining Sessions.
HTH
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why would nr.3 be correct ?...
anyone have any logic for this.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTTP is a stateless protocol, hence the need for cookies or URL/form parameters to maintain HTTP sessions. However, HTTPS is not stateless as SSL requires a session to be set up between client and server. As a consequence the container can identify HTTPS clients simply by their SSL session.
For the curious, SSL traffic is encrypted using a secret key, unsurprisingly called the session key. Agreeing on this key is one of the most important things that happen during session setup (SSL handshake). During the handshake they also exchange authentication information, usually the server certificate.
- Peter
 
reply
    Bookmark Topic Watch Topic
  • New Topic