473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

create and retrieve cookie?

hey

ASP.NET 2.0

I'm preparing for a certification exam on asp.net 2.0 and yesterday I took a
skill assessment test on microsoft.com. One of the questions was about
creating cookies. This was the question: "Which object or objects will you
use to create and retrieve cookies"... 6 alternative answer were listed,
below I show only 2 most relevant alternatives

#1 )
Request.Cookies to create cookies
Response.Cookies to retrieve Cookies

#2 )
Request.Cookies to retrieve cookies
Response.Cookies to create cookies

I'm wondering if alterntieve #1 is correct here... do you agree on that???

I get a bit confused on this because the collection of cookies are available
at both Request and Response.

Jeff

Nov 21 '06 #1
4 1576
Hello Jeff!

Thanks for the post.

Yes you are right that the question is a bit confusing. The correct
answer for your question is alternative #2.

Response.Cookies is used to "create" and "modify" cookies whereas to
retrieve a cookie value, Request.Cookies is used.

Regards,
Mohsin Rizvi

Jeff wrote:
hey

ASP.NET 2.0

I'm preparing for a certification exam on asp.net 2.0 and yesterday I took a
skill assessment test on microsoft.com. One of the questions was about
creating cookies. This was the question: "Which object or objects will you
use to create and retrieve cookies"... 6 alternative answer were listed,
below I show only 2 most relevant alternatives

#1 )
Request.Cookies to create cookies
Response.Cookies to retrieve Cookies

#2 )
Request.Cookies to retrieve cookies
Response.Cookies to create cookies

I'm wondering if alterntieve #1 is correct here... do you agree on that???

I get a bit confused on this because the collection of cookies are available
at both Request and Response.

Jeff
Nov 21 '06 #2
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:ey**************@TK2MSFTNGP03.phx.gbl...
ASP.NET 2.0

I'm preparing for a certification exam on asp.net 2.0 and yesterday I took
a skill assessment test on microsoft.com. One of the questions was about
creating cookies. This was the question: "Which object or objects will you
use to create and retrieve cookies"... 6 alternative answer were listed,
below I show only 2 most relevant alternatives

#1 )
Request.Cookies to create cookies
Response.Cookies to retrieve Cookies

#2 )
Request.Cookies to retrieve cookies
Response.Cookies to create cookies

I'm wondering if alterntieve #1 is correct here... do you agree on that???

I get a bit confused on this because the collection of cookies are
available at both Request and Response.
IMO, the above is a perfect illustration of the total and utter waste of
time that is the Microsoft certification program...

There is simply no merit whatsoever in being able to "remember" the above -
if you can, you maybe save yourself the few seconds required to look it up
in the MSDN library or through a Google search. If you work with cookies all
the time, then you'll already know this - if you work with cookies only
occasionally, then you'll look it up for a few seconds and then forget it
again until you need to know it next time - you simply don't need to be able
to regurgitate this stuff out verbatim...

If the question was related to related even slightly to when it's a good
idea to use cookies and when it isn't, or what to do if the browser doesn't
accept cookies, or whatever, then that would be different - that would be
applied knowledge and, as such, of some use.

But the simply ability to retain a bunch of meaningless facts for 24 hours
is of on use to anyone.

Why are you even considering taking a Microsoft certification exam?

What do you hope to gain by it?

Which idiot are you hoping to impress with it...?

You don't seriously think that being able to pass a Microsoft certification
exam demonstrates even the slightest ability to put any of the "learning"
you've retained for 24 hours to any sort of practical use, do you...? Surely
not...!
Nov 21 '06 #3
Hey Mark!

I totally agree with you. Well I'm not actually preparing for a microsoft
certification exam. I'm preparing for a test by www.123assess.com . It's a
recruiting company which wants me to take a C# test at www.123assess.com (I
mentioned microsoft exam in my first post, because I thought these test was
very much the same).

Hmm I've worked with someone who have taken over 50 microsoft exams... I
thought he were the experts... so I asked him a simple question about .net
2.0.. he didn't know the answer... so these exams are pretty useless.. but
I do it if I can get a better paid job as a developer...

Any thoughts about www.123assess.com exams? are they much the same as the
exams provided by microsoft?

Jeff
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:On**************@TK2MSFTNGP04.phx.gbl...
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:ey**************@TK2MSFTNGP03.phx.gbl...
>ASP.NET 2.0

I'm preparing for a certification exam on asp.net 2.0 and yesterday I
took a skill assessment test on microsoft.com. One of the questions was
about creating cookies. This was the question: "Which object or objects
will you use to create and retrieve cookies"... 6 alternative answer were
listed, below I show only 2 most relevant alternatives

#1 )
Request.Cookies to create cookies
Response.Cookies to retrieve Cookies

#2 )
Request.Cookies to retrieve cookies
Response.Cookies to create cookies

I'm wondering if alterntieve #1 is correct here... do you agree on
that???

I get a bit confused on this because the collection of cookies are
available at both Request and Response.

IMO, the above is a perfect illustration of the total and utter waste of
time that is the Microsoft certification program...

There is simply no merit whatsoever in being able to "remember" the
above - if you can, you maybe save yourself the few seconds required to
look it up in the MSDN library or through a Google search. If you work
with cookies all the time, then you'll already know this - if you work
with cookies only occasionally, then you'll look it up for a few seconds
and then forget it again until you need to know it next time - you simply
don't need to be able to regurgitate this stuff out verbatim...

If the question was related to related even slightly to when it's a good
idea to use cookies and when it isn't, or what to do if the browser
doesn't accept cookies, or whatever, then that would be different - that
would be applied knowledge and, as such, of some use.

But the simply ability to retain a bunch of meaningless facts for 24 hours
is of on use to anyone.

Why are you even considering taking a Microsoft certification exam?

What do you hope to gain by it?

Which idiot are you hoping to impress with it...?

You don't seriously think that being able to pass a Microsoft
certification exam demonstrates even the slightest ability to put any of
the "learning" you've retained for 24 hours to any sort of practical use,
do you...? Surely not...!

Nov 21 '06 #4
"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:O2**************@TK2MSFTNGP04.phx.gbl...
I totally agree with you. Well I'm not actually preparing for a microsoft
certification exam. I'm preparing for a test by www.123assess.com . It's a
recruiting company which wants me to take a C# test at www.123assess.com
(I mentioned microsoft exam in my first post, because I thought these test
was very much the same).
Is this the only company who's hiring at the moment...? Walk away from
them...
Hmm I've worked with someone who have taken over 50 microsoft exams... I
thought he were the experts... so I asked him a simple question about .net
2.0.. he didn't know the answer... so these exams are pretty useless..
but I do it if I can get a better paid job as a developer...
You also need to ask yourself do you want to work for anyone who knows so
little about real-world software development that they perceive any value in
these pointless tests...

If I had to choose between two job applicants, I would always choose the one
who had the fewer MCPs, preferably none at all...
Any thoughts about www.123assess.com exams? are they much the same as the
exams provided by microsoft?
I have no idea...
Nov 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Colin Graham | last post by:
hi folks, just wonder if this is possible or is there a better way of doing this. i need to store values in cookies between two forms. the details are added in a popup when this is closed the...
3
by: James Geurts | last post by:
This is probably more of an ASP.Net situation rather than c#, but since all of my code behind is in c#, maybe it fits here. I'm wondering, generally, at what point is it too inefficient to store...
15
by: joun | last post by:
Hi all, i want to create in my asp.net application a custom server variable, so i can retrieve later in other pages (even asp or perl) with request.servervariables("HTTP_mycustomvariable") ...
1
by: onceuponapriori | last post by:
Greetings gents. I'm a Railser working on a django app that needs to do some scraping to gather its data. I need to programatically access a site that requires a username and password. Once I...
7
by: =?Utf-8?B?SlA=?= | last post by:
I need to design a WS that will after authenicating the user, create a cookie on the users PC that made the request. All the code I keep finding is how to get a WS to read a cookie, I need it to...
2
by: Josh T | last post by:
As of now I am setting a cookie on my aspx page via javascript, function SetCookie(cookieName, value, minutesToExpire) { ClearCookie(cookieName); var expireDate = new Date(); var...
1
oranoos3000
by: oranoos3000 | last post by:
hi i want to set cookie with javascript i use this code <script language="javascript"> document.cookie="username='ali'"; </script> with using this code when i look at previous cookie that...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.