Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / November 2004

Tip: Looking for answers? Try searching our database.

Cache from another user session(?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ariel - 03 Nov 2004 21:35 GMT
  I have a the following  int the Page.Load

Sub page load(

if Not Page.IsPostBack the

function_a(Context.item("Object")

Cache.Insert("MyDataSet1", Context.item("Object") , Nothing, Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(10))

else  'event on the pag

function_b( Cache("MyDataSet1") ) 'event

end if

end Su

   When the page is postback dua an event on the page the cache passed in this case is from another user Session (?). Please can anybody helpme with this. Iam really lost
  Thank you very much

Ariel

---
Alvin Bruney [MVP] - 03 Nov 2004 23:41 GMT
no need to be lost. the cahce object  is global in scope. every user has
access to it. If you need session specific information, store it in session
instead of cache

Signature

Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok

>
>   I have a the following  int the Page.Load:
[quoted text clipped - 24 lines]
>
> ---

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.