Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Sending objects to other pagesSending objects to other pages
Previous
 
Next
New Post
9/9/2008 6:31 AM
 

Hi all

I've been trying to pass an object from one page to another.  The object is a query of the Amazon Product database and takes a while to generate plus i am only allowed to send requests to amazon once a second.  As a result i need to find a way to keep sending the data around without having to bother amazon more than once.

Whats the best way to do this and how?  My first idea what to use session variables.  Do i need to serialize the object to do this, also how do i serialize an object?

Any help would be most appreciated

Si

 
New Post
9/9/2008 10:48 AM
 

I personally would not recommend using session, but it could work.  If the data is not user specific but application specific you could throw it into the cache.

To be able to serialize an object, you just have to mark it as Serializable.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
9/10/2008 11:22 AM
 

I used sessions in the end and it works fine.  For what reason would you recommend using the cache instead?  The data isn't user specific so the cache would be ok to use instead.

 
New Post
9/10/2008 2:10 PM
 

There are a few reasons not to use session.

1) Session is per user, therefore if you are holding non-user specific information session will contain multiple object copies
2) Session does not work in multi-web server locations
3) Overall session is not reliable, timeouts occur, and if you are really looking to preserve data, other methods work better.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
9/11/2008 4:19 AM
 

Ok thanks. in that case i'll prob change it to use the cache instead.

Si

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Sending objects to other pagesSending objects to other pages


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out