Skip to content

If session has expired clear out session id/encoding to allow logging in#3

Open
brendasukh wants to merge 2 commits into
masterfrom
fix-logout
Open

If session has expired clear out session id/encoding to allow logging in#3
brendasukh wants to merge 2 commits into
masterfrom
fix-logout

Conversation

@brendasukh

Copy link
Copy Markdown

The logout query fails if the session has expired. In this case that this happens, we need to clear out the session information to enable login later.

@martingordon martingordon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor fix. Otherwise LGTM!

Comment thread lib/silverpop/engage.rb
if e.message == 'Session has expired or is invalid'
@session_id = nil
@session_encoding = nil
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want to raise e if the message doesn't match, otherwise we're suppressing all errors.

@brendasukh

Copy link
Copy Markdown
Author

ping @martingordon

@brendasukh

Copy link
Copy Markdown
Author

@martingordon ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants