How could a timer be implemented so that a user is automatically logged out
after a period of time?

This may not be the case, but I believe I am having problems with users
being logged in to multiple computers/devices,
or leaving there account open which allows others to use it.

As a side question how is the stored i.p. address being used?

Thanks,

Jet

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Nate Lowrie at Feb 26, 2013 at 1:41 pm
    Look in config/initializers/devise.rb. There are a lot of configuration
    settings includingconfig.timeout_in. A timeout of 30 minutes would suite
    you fine.

    Regards,

    Nate
    On Tuesday, February 26, 2013 12:31:01 AM UTC-5, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jet at Mar 13, 2013 at 10:01 pm
    What would be the best way to change this?

    Should I just copy this file into my app,

    config/initializers/devise.rb

    and edit it to include my changes?

    Thanks!

    Jet
    On Tuesday, February 26, 2013 5:41:45 AM UTC-8, Nate Lowrie wrote:

    Look in config/initializers/devise.rb. There are a lot of configuration
    settings includingconfig.timeout_in. A timeout of 30 minutes would suite
    you fine.

    Regards,

    Nate
    On Tuesday, February 26, 2013 12:31:01 AM UTC-5, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Ryan Bigg at Mar 13, 2013 at 10:43 pm
    I wouldn't copy the whole file. Just define a new
    config/initializers/devise.rb inside your app and have it only contain the
    settings you wish to change.

    On Wed, Mar 13, 2013 at 3:01 PM, Jet wrote:

    What would be the best way to change this?

    Should I just copy this file into my app,

    config/initializers/devise.rb

    and edit it to include my changes?

    Thanks!

    Jet

    On Tuesday, February 26, 2013 5:41:45 AM UTC-8, Nate Lowrie wrote:

    Look in config/initializers/devise.rb. There are a lot of configuration
    settings includingconfig.timeout_in. A timeout of 30 minutes would suite
    you fine.

    Regards,

    Nate
    On Tuesday, February 26, 2013 12:31:01 AM UTC-5, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet
    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.



    --

    Ryan Bigg
    Community Manager
    Spree Commerce, Inc.

    Register now for SpreeConf
    May 20-21 in Washington, D.C.
    http://spreeconf.com

    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jet at Mar 13, 2013 at 11:32 pm
    Thanks Ryan, will do.
    On Wednesday, March 13, 2013 3:43:30 PM UTC-7, Ryan Bigg wrote:

    I wouldn't copy the whole file. Just define a new
    config/initializers/devise.rb inside your app and have it only contain the
    settings you wish to change.


    On Wed, Mar 13, 2013 at 3:01 PM, Jet <j...@whidbey.com <javascript:>>wrote:
    What would be the best way to change this?

    Should I just copy this file into my app,

    config/initializers/devise.rb

    and edit it to include my changes?

    Thanks!

    Jet

    On Tuesday, February 26, 2013 5:41:45 AM UTC-8, Nate Lowrie wrote:

    Look in config/initializers/devise.rb. There are a lot of configuration
    settings includingconfig.timeout_in. A timeout of 30 minutes would
    suite you fine.

    Regards,

    Nate
    On Tuesday, February 26, 2013 12:31:01 AM UTC-5, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet
    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to spree-user+...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.



    --

    Ryan Bigg
    Community Manager
    Spree Commerce, Inc.

    Register now for SpreeConf
    May 20-21 in Washington, D.C.
    http://spreeconf.com
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jet at Mar 14, 2013 at 9:24 pm
    I am using the spree_auth_devise gem.

    I created the file

    config/initializers/devise.rb

    in my app,

    ...and put the following in it:


    Devise.setup do |config|
    config.timeout_in = 30.minutes
    end

    However, I am not required to log in again after 30 minutes.
    Am I missing something?

    For some reason, would the following also need to be set?

    config.default_scope = :user
    config.sign_out_all_scopes = false

    I was signed in as an admin on the front end site (not the backend admin
    site)
    when I tested this, if that would make a difference.



    On Wednesday, March 13, 2013 4:32:54 PM UTC-7, Jet wrote:

    Thanks Ryan, will do.
    On Wednesday, March 13, 2013 3:43:30 PM UTC-7, Ryan Bigg wrote:

    I wouldn't copy the whole file. Just define a new
    config/initializers/devise.rb inside your app and have it only contain the
    settings you wish to change.

    On Wed, Mar 13, 2013 at 3:01 PM, Jet wrote:

    What would be the best way to change this?

    Should I just copy this file into my app,

    config/initializers/devise.rb

    and edit it to include my changes?

    Thanks!

    Jet

    On Tuesday, February 26, 2013 5:41:45 AM UTC-8, Nate Lowrie wrote:

    Look in config/initializers/devise.rb. There are a lot of configuration
    settings includingconfig.timeout_in. A timeout of 30 minutes would
    suite you fine.

    Regards,

    Nate
    On Tuesday, February 26, 2013 12:31:01 AM UTC-5, Jet wrote:

    How could a timer be implemented so that a user is automatically
    logged out after a period of time?

    This may not be the case, but I believe I am having problems with
    users being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet
    --
    You received this message because you are subscribed to the Google
    Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to spree-user+...@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.



    --

    Ryan Bigg
    Community Manager
    Spree Commerce, Inc.

    Register now for SpreeConf
    May 20-21 in Washington, D.C.
    http://spreeconf.com
    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Ryan Bigg at Feb 27, 2013 at 8:31 am
    Stored IP address is passed to payment gateways so that they can see where
    the payments are coming from
    On Tuesday, February 26, 2013, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet

    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to spree-user+unsubscribe@googlegroups.com <javascript:_e({},
    'cvml', 'spree-user%2Bunsubscribe@googlegroups.com');>.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jet at Feb 27, 2013 at 8:19 pm
    Nate and Ryan,

    Thanks for the answers.

    Jet
    On Wednesday, February 27, 2013 12:31:19 AM UTC-8, Ryan Bigg wrote:

    Stored IP address is passed to payment gateways so that they can see where
    the payments are coming from
    On Tuesday, February 26, 2013, Jet wrote:

    How could a timer be implemented so that a user is automatically logged
    out after a period of time?

    This may not be the case, but I believe I am having problems with users
    being logged in to multiple computers/devices,
    or leaving there account open which allows others to use it.

    As a side question how is the stored i.p. address being used?

    Thanks,

    Jet

    --
    You received this message because you are subscribed to the Google Groups
    "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    You received this message because you are subscribed to the Google Groups "Spree" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to spree-user+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedFeb 26, '13 at 5:31a
activeMar 14, '13 at 9:24p
posts8
users3
websitespreecommerce.com
irc#RubyOnRails

3 users in discussion

Jet: 5 posts Ryan Bigg: 2 posts Nate Lowrie: 1 post

People

Translate

site design / logo © 2022 Grokbase