Displaying 2 results from an estimated 2 matches for "hash_before".
2008 May 17
4
Setting cookies in service overloader thingo
...data = {} unless secure_blob_hasher(blob) == secure_hash
> else
> blob = ''''
> data = {}
> end
>
> app = self.class.name.gsub(/^(\w+)::.+$/, ''\1'')
> @state = (data[app] ||= Camping::H[])
> hash_before = blob.hash
> return super(*a)
> ensure
> if data
> data[app] = @state
> blob = Marshal.dump(data)
> unless hash_before == blob.hash
> secure_hash = secure_blob_hasher(blob)
> @cookies.identity = Base64.encode64(blo...
2007 Sep 25
13
Session cookies not passed on first redirect
Hello Campers!
Is it just me or does Camping init the session twice on a redirect?
If I have an app and when the user visits it for the first time, a
session is generated. Afterwards I redirect the user in a service
(that basically does auth) and he gets bounced to the login page -
but when I arrive at the login page my SID somehow has changed :-( so
there is a stale session dangling