Question: You are developing a web application and want to use cookies. Your domain is myapp.com, and you use several subdomains as well, such as products.myapp.com

You are developing a web application and want to use cookies. Your domain is "myapp.com", and you use several subdomains as well, such as "products.myapp.com" and "directory.myapp.com"

What attributes would you set in the set-Cookies response header to specify that:

The cookie should only be valid for one week.

The cookie should only be used via an SSL - encrypted channel.

That a cookie received from "directory.myapp.com" will be valid for "myapp.com" as well.

Note: You don't need give the specific values of the attributes or craft the entire headers(s). Just list the name(s) of the header(s) and attributes. Also specify which attribute(s) apply to each of the specifications above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!