cookie nightmares

J

Jason Shohet

GOAL: a .NET cookie, in a user's cookie folder, contains the machinename of
the current machine the user is on. Various .NET apps will look at that
cookie file to determine if the logged in user ( for that .NET app) is
allowed to access that machine. (In a db we have the machine that ea. user
can log onto).

HOW WE ARE TRYING TO DO IT: An echo command in a startup routine (when
the computer is logged into) writes the text to the appropriately named
cookie file. That startup routine knows the user, and the machine. So its
easy to write a file in the way that .NET needs a cookie to be, named
appropriately and put in that user's cookie folder.

RESULT: The cookie looks perfect, and is named correctly, and is placed
correctly in the cookie folder for that user. But .NET can't read it. I
believe it has to do with hidden characters. ie, take a look at a .NET
cookie. After the second 'e' in ClientInfoCookie, there is a hidden
character. You'll notice it by spacing over, it spaces twice at that point.
Also, after 'localhost/' there's a hidden character, and before the first
'*' there's a hidden character. But the Echo command that the network
engineer is running, strips out hidden characters. Could this be why we
can't read the cookie? Why the heck are those things there anyway?

Anyone have any experience doing what I'm trying to do? An easier way
perpaps. Maybe I can use a javascript cookie, and have the machine name &
currentuser placed in there. Can .NET read a JS cookie perhaps...
Desperation here :)

TY Jason Shohet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top