Alpha DevCon 2018
Results 1 to 11 of 11

Thread: Extend session lifetime

  1. #1
    Member
    Real Name
    Rajen Kalauni
    Join Date
    Apr 2016
    Location
    New Delhi,India
    Posts
    44

    Default Extend session lifetime

    Hi,

    I am using Alpha 5 v12 developer version.My development server looks like this:
    development_server.png
    I have increased session lifetime to 30 mins. Its working when publishing locally but can't increase session life time when publishing in remote Alpha Application server for IIS.

    Do I need different setting for session in remote server ? Plz I am waiting for your reply.
    Thanks

  2. #2
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: Extend session lifetime.

    Do I need different setting for session in remote server ?
    yes.
    wherever you are hosting your application server if you look at the task bar on the right side alpha server icon is present. click on it and configure that one to reflect the changes, that will increase the lifetime of session where it really matters.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  3. #3
    Member
    Real Name
    Rajen Kalauni
    Join Date
    Apr 2016
    Location
    New Delhi,India
    Posts
    44

    Default Re: Extend session lifetime.

    Hi GGandi,
    Thanks for your reply but I can't find anyalpha server icon in my developer version. Please can you give me little more clear instructions?
    alpha_server_icon.png
    Please I am waiting for your reply.

  4. #4
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: Extend session lifetime.

    my developer version
    not in your development machine, but
    wherever you are hosting your application server
    the remote site.
    the development machine will not have one, but the alpha web server program does. so look in the REMOTE site
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  5. #5
    Member
    Real Name
    Rajen Kalauni
    Join Date
    Apr 2016
    Location
    New Delhi,India
    Posts
    44

    Default Re: Extend session lifetime.

    Hi GGandi,
    thanks again. This is the snapshot of the remote Application server for iis.Application_server1.png

    I do have access to this only. Where can I change settings for session lifetime ? I will be grateful if you can elaborate it little more.
    Waiting for your reply.
    Thanks.

  6. #6
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: Extend session lifetime.

    unfortunately i do not have version 12 so no IIS integration, i am sure someone will help you with this.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  7. #7
    "Certified" Alphaholic
    Real Name
    Scott
    Join Date
    Mar 2010
    Location
    Toronto,ON
    Posts
    1,030

    Default Re: Extend session lifetime.

    This is theoretical as I have not used Alpha on top of IIS much yet, but I would assume when Alpha piggybacks off IIS they are letting IIS handle session management.
    If you dont find a config options in your IIS console for Alpha App Server - try actually tweaking the IIS settings.
    Dont forget to restart the IIS website

    https://technet.microsoft.com/en-us/...(v=ws.10).aspx
    Scott Moniz - Computer Programmer/Analyst
    REA Inc.
    http://reainc.net
    (416)-533-3777
    scott@reainc.net

    REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
    If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
    contact us to discuss options.

  8. #8
    Member
    Real Name
    Rajen Kalauni
    Join Date
    Apr 2016
    Location
    New Delhi,India
    Posts
    44

    Default Re: Extend session lifetime.

    Hi GGandhi and Scott,

    Thanks for your reply. Now I am able to extend session life time.

    It's under the web.config file. I have changed timeout to 30 and session life time is extended to 30 minutes.

    <sessionState mode="StateServer" cookieName="x...x" timeout="30" allowCustomSqlDatabase="false"></sessionState>

    Thanks again for your support.

  9. #9
    Member
    Real Name
    Ajay Nair
    Join Date
    Oct 2017
    Posts
    1

    Default Re: Extend session lifetime.

    During Development time (Local Webroot).. where is the Extend Session time setup ?
    I understand, after publish to IIS.. you can edit the Web.Config file for the parameter.

    Ajay Nair

  10. #10
    "Certified" Alphaholic iRadiate's Avatar
    Real Name
    Stephen
    Join Date
    Jan 2011
    Location
    London, ON
    Posts
    1,438

    Default Re: Extend session lifetime.

    Quote Originally Posted by ajaynair View Post
    During Development time (Local Webroot).. where is the Extend Session time setup ?
    I understand, after publish to IIS.. you can edit the Web.Config file for the parameter.

    Ajay Nair
    It's in the component's properties ...

    Extend Session.jpg
    Alpha Anywhere v12.4.5.4.1 Build 5151-5127 IIS v8.5

  11. #11
    Member
    Real Name
    Rich Fulham
    Join Date
    May 2011
    Location
    Portland, OR
    Posts
    815

    Default Re: Extend session lifetime

    Rajen,
    Is it expected your users will leave your app open all the time, so it is always ready to be used?

    I'm just curious, because that is how my users use the web app that I built. I have had problems with the load balancer; it had its own timeout setting. Even after correcting its timeout value and inserting code into my app to send short requests to the server every 90 seconds, or so, I still had problems with people supposedly "timing out". I don't think they actually got a session expired message. I think the Grid they use would not get a response from the server when they did a "submit". I swapped out the Grid for a UX and also reconfigured load balancer to always direct traffic to instance # 1 of WAS. I have not had any "time out" complaints after doing that.

Similar Threads

  1. Does Session Lifetime renew itself?
    By RichCPT in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 05-11-2017, 04:23 PM
  2. Replies: 5
    Last Post: 05-20-2016, 06:10 AM
  3. session lifetime
    By Steve Wood in forum Application Server Version 8
    Replies: 2
    Last Post: 03-19-2007, 10:11 PM
  4. Session lifetime - Maximum?
    By CALocklin in forum Web Application Server v6
    Replies: 4
    Last Post: 10-06-2005, 05:27 PM
  5. Extend Trial Period
    By Laurie Daniels in forum Alpha Five Version 5
    Replies: 20
    Last Post: 03-21-2003, 09:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •