Cookies on different servers

M

MRW

Hello!

I've put together a project on my local server which is running
perfectly. When I uploaded the code to my server, while it continues
to work perfectly for my computer, on any other computer I get an
error:

--

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

--

Which always points to a line of code that refers to a cookie which is
created when a person logs in.

It's strange since the login works perfectly. Only after, when the
cookie is referenced do I get this error, and it only happens on
computers other than my own.

Does anybody have any ideas?

Thanks for the help!
 
B

Brian Williams

It's possible that when developing you created a cookie, then later added
something that actually used the cookie maybe converted to an integer. If
you were to clear your cookies you would probably get the same error. Try
checking for the existence of the cookie first, make sure it's not null
before any use of it.



If you upload your code maybe I could give you a better answer.



Regards,

Brian K. Williams
 

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

Similar Threads

Functioning website now fails 0
Cookies during error handling 1
Cookies 1
Cookies 1
Different web servers 0
'securing' cookies/login info 5
Problem with accessing cookies? 3
Using Cookies 0

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top