troubleshooting Question

HttpContext.Cache

Avatar of MrKevorkian
MrKevorkian asked on
.NET ProgrammingASP.NET
4 Comments1 Solution597 ViewsLast Modified:
Hi,

I am using MVC 2.0.

I have a small customer object - firstname, lastname, dateregistered.

My site - site A, receives this object, then needs to make a redirect request  to another site - site b.   Site b redirects/bounces that request back to my site a login page (we are using windows identity foundation).  At site a's login page, the user enters their email and password and submits the login page. At this point I want to get my customer object information.
The whole process should only take a few seconds.

I want to persist my customer object (not in the database), whilst these redirects occur.
I am currently using HttpContext.Cache like this:

 
httpContextBase.Cache.Add(
                name,
                item,
                null,
                Cache.NoAbsoluteExpiration,
                new TimeSpan(0, 10, 0),
                CacheItemPriority.High,
                null
                );

My question is -

Is this safe? Is there a better way of doing it?

Thanks
ASKER CERTIFIED SOLUTION
neonp

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros