What would be the correct way to implement session on G-WAN's Ruby, this is my idea:
- send a random cookie if not exists, or the GUID cookie would be fine? but how to read and write Cookie on G-WAN's Ruby? documentation only shows the examples on C
- create a file if not exists on /tmp/rubysessid-#{cookie_GUID} just like PHP did
- read the content on every request, and rewrite when changed
but the problem would be: 2 requests from the same source on the same time would rewrite cookie file content at the same time making it possible for data corruption or inconsistency
is there a better way to implement session on G-WAN's Ruby?