wget - cookie with expiration date

How can I create a cookie with expiration date using either wget or curl?

I am able to use cli wget, cli curl, or php curl.

I don't see that the cookies I have created contain an expiration date, and I have a problem logging into a forum that looks for the expiration date.

It might be encoded or enciphered. Steal the cookie from a browser?

Once it gets started, does curl save new cookies? Yes, with the cookie-jar!

Do you have a cookie-Jar? :smiley:

Make sure you tell wget to keep session cookies. Otherwise it won't.