Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4241056
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:15:07+00:00 2026-05-21T03:15:07+00:00

will the session of the ASP.NET page hosting the Silverlight plugin expire/timeout when no

  • 0
  1. will the session of the ASP.NET page hosting the Silverlight plugin expire/timeout when no work/interaction is done on the Silverlight plugin?

  2. if ASP.NET session timeout is say 20 minutes and the user continues interaction with the Silverlight plugin for forty minutes, will the ASP.NET session timeout or not?

note:

by session, i am referring to the session variables used in my WCFservice and on the ASP.NET host page,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:15:07+00:00Added an answer on May 21, 2026 at 3:15 am

    The answer is simply yes, it will timeout.

    You should see the Silverlight application as a javascript app, or as any desktop app. If you don’t explicitely perform interactions with your ASP.NET app during the execution of the SL App, ASP.NET won’t know that your user is active: ASP.NET is only able to refresh sessions on HTTP request.

    But you can maintain the session from the Silverlight App by sending requests to your website (aka keepalive requests, or something more useful, it depends on your requirements)

    Use the browser stack to send the cookies to ASP.NET with your request using the WebClient class in Silverlight. A javascript timer and jquery could do the trick too, if you don’t want to perform this logic from your SL App (therefore keeping it free from these considerations)

    Keep Alive with Silverlight

    The browser network stack is enabled by default on Silverlight, therefore if you didn’t change anything, your app will use it.

    If you only want to implement a keep alive for your session, add to your site an URL processed by ASP.NET (an aspx file, or a route, an handler… depending on your web site implementation (for instance /KeepAlive.aspx ))

    in your silverlight application, use this code to add a timer to the application. It will perform a web request through the WebClient class every X minutes.

    var timer = new DispatcherTimer();
    timer.Interval = new TimeSpan(0,5,0)//run every 5 minutes (should be shorter than your session timeout.
    timer.Tick+=(s,args)=>
      {
        var client = new WebClient();
        client.DownloadStringAsync(keepAliveUrl);
      };
    timer.Start();
    

    The code should be called after application startup (for instance in the App.xaml.cs file)

    Keep Alive with JS (JQuery)

    In your SL hosting page, use JQuery to perform the same get request on the server, every X minutes from page load.

    $.get('/KeepAlive.aspx', function(data) {});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you cache data from your database in ASP.NET session then you will speed
I have an ASP.NET page where i will check whether the user has logged
Here the problem. I have my site hosted on a shared hosting for asp.net
I have an ASP.NET page that I want to be able to generate and
I have an ASP.net page which has fields for filtering a dataset. When I
I have an ASP.NET page where the page is making use of jQuery UI
ASP.NET does not allow concurrent requests for the same session; meaning that a user
I have an ASP.NET page in a frameset. I divided into 2 frames, 1.LEFTNAVI
I have the following code which pulls json data from an ASP.NET page and
I have an ASP.NET 4 site with url's having session string embedded in them.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.