Is there a way or any other way that I can use to delete all previously saved cookies in Mechanize? He remembers that I am registered, in my case it is not very good. I will need to be logged in every time I connect to the page.
After something like
agent = Mechanize.new agent.get SOMEURL
you can delete all cookies with agent.cookie_jar.clear! so the next agent request will not send cookies.
agent.cookie_jar.clear!