Skip to content

Instantly share code, notes, and snippets.

@smathy
Created May 10, 2011 00:07
Show Gist options
  • Save smathy/963681 to your computer and use it in GitHub Desktop.
Save smathy/963681 to your computer and use it in GitHub Desktop.
File.open( php_session_file_name, File::WRONLY|File::CREAT ) do |io|
io.flock File::LOCK_EX
io.truncate(0)
io.print prepared_session.to_wddx
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment