Choose the correct answer: a. Session Timeouts can be defined in the web.xml as below: Time-in-minutes b. Session Timeouts can be defined in the server.xml as below: Time-in-minutes c. Session Timeouts cannot be defined in the deployment descriptor
a
b
c
a AND b
The Command :>filename is used to
Empty the existing file or create an empty file
Print the string : to filename
Delete the file
Append the file at the last line
The Default variable $TZ is used to[wrong]
display the number of Zombie process in the system
set the time zone
set the time for zip process
display the last test condition result
filename=sample.txtfile=${filename%.*}echo $file$file now contains
txt
sample
.txt
sample.
How to call the function function1 in shell
function1()
call function1
function1
ask function1
Choose the correct answer about the following code: public class SetCookie extends HttpServlet { public void doGet (HttpServletRequest req, HttpServletResponse res) { Cookie cookie = new Cookie ("Session Cookie”, req.getParameter(“value”)); cookie.setMaxAge (3600); response.addCookie (cookie); } ...
3600 is beyond the limit
It is not recommended as it is using Persistent Cookies
It leads to Cookie Poisoning Attack
Option 1 AND Option 2
Option 2 AND Option 3
Option 1 AND Option 2 AND Option 3
The Default variable $TZ is used to
filename=sample.txt file=${filename%.*} echo $file $file now contains