How to stop strangers seeing my photos when i connect my iPhone to laptop/PC?

I have had all the iPhones, and have always had a lock on them. When situations arise that I have to connect my phone to someone's laptop /pc to charge my phone, they can view all my pictures!

How do i prevent this?

Protect your phone's memory then may be it won't be open for them.

You Can't But I Think If you Jailbreak your Phone Cydia Maybe Help

No you can't.