Set Up Coredump's

I am trying to set up coredumps on a server, I have enabled the coreadm, and have also set a path to whre the coredumps will go.

I now need to set the ulimit , as this is set to 0. I made the change:
ulimit -c 8192

but when I logged out and back in, it was set back to 0 again. I need to know how to make it stay permanent ?
Or is there something else missing, in setting up coredumps ?

Please any ideas welcome...:confused:

Look in /etc/default/login and see if ulimit=0 is uncommented or not.